+ Start a Discussion
Anupama@28Anupama@28 

Link to Library content document in portal

Hi,
We have created a Library in salesorce with some content docuemnts/pdf files under it. 
Our customers and partners wants the to view the content documents in the portal, How to create direct link to view pdf documents.
If I give the contentId in the link it is showing the content in preview mode as salesforce classic view which is not our requirement.
Any help is appreciated.

We have tried the below
-------------------------------------------------
> Uploaded docuements under static resource but disadvantage of static resurce is we cannot have files more than 5MB
> Created as Articles attachment but the articles are showing in KB search result , and we want to hide these files from selected users 

Thanks,
Anupama
Neil HayekNeil Hayek
Hello Anupama,

When you mention portal, do you mean our product that pre-dates communities, or do you mean a community?

In both cases, users could have access to a list of their libraries and the files within them in the UI (standard).

Are you trying to link directly to downloading the document?

That could be done with a format like:

https://c.na50.content.force.com/sfc/servlet.shepherd/version/download/068B000000015mv?asPdf=false&operationContext=CHATTER

This may need to be modified to work in a portal.

When you say if you give the contentId, you see a preview, can you please provide an example of the URL?