We're querying ContentDocumentLink for a list of documents related to a specific object record that the user has access to, and attempting to create a link for the community user to download that document. We're finding the ContentDocument ID in ContentDocumentLink.LatestPublishedVersion.Id
. The LEX link of /sfc/servlet.shepherd/version/download/{ID}
works fine from the Org domain, but I am not finding an equivalent for the Community domain. The error I receive is that the "community is down for maintenance". I've tried a number of variations and mixtures of this and /lightning/r/ContentDocument/{ID}/view
. Is this something that can be done in Lightning Communities?
We are building this page using Skuid (basically html in this particular case), so we are not able to use an Aura or LWC solution.