Hello Everyone. Having a devil of a time getting a valid link to a document that a logged in user on my experience site can click on and view/download a pdf.
Ultimately, I have
community users logged into my experience siteand running a screen flow. On one of the screens, I need a url link to a document that is visible on my experience site's > Content Management > Shared Content. AND, this cannot be a public link that is accessible without logging in; they must be logged into the site to view and download the file.
- In my DEV org on the desktop, I launched Digital Experiences app.
- Choosing CMS Workspaces navigation item, I see my workspace there: Downloadable Applicant Files
- If I open this workspace, I added a pdf document called Permission to Share (its title) and published it.
- When I return to my experience site > Content Management > Shared Content, I now see the title, Permission to Share, Content Type = Document with Created by and Published date.
I am stuck on how to find the url to this file as it exists on the experience site.
Using SOQL query with Salesforce Inspector , there are DistributionPublicURL and ContentDownadURL values but these urls are linked to the desktop, not the experience site.
In the Content Management > Shared Content, the title is hyperlinked. If I copy that link, that doesn't work. I get the error: You don't have access to Experience Workspaces. If you think you should have access, ask your admin for help.
First, can I achieve what I need from the work I have done so far? If yes, what am I missing to get the url?
And of course, if I am going about this the wrong way, then please provide guidance.
Many thanks, Gerald
#Experience Site
If I right click on the hyperlinked file name (in my experience site > Content Management > Shared Content, the title, Permission to Share) and copy it, that is a public link that I can open with any browser without being logged in so that is not desirable.