function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Amitkumar15Amitkumar15 

Creating external public links for a uploaded documents

Creating external public links for a uploaded documents

Best Answer chosen by Admin (Salesforce Developers) 
ReidCReidC

All Answers

ReidCReidC
This was selected as the best answer
Amitkumar15Amitkumar15

Thanks Reid...

 

This link i have tried but not working for me.I have a document which i have uploaded and i need public link for that.

Amitkumar15Amitkumar15

I have to create custom link for uploaded document.any help on this please?

AneeshaAneesha

Create custom link with content source onclick javascript.

use this code in the content.

var refstring = window.location.protocol+'/<your docId>';
window.open(refstring);

Amitkumar15Amitkumar15

That solution didn't work Aneesha.

 

I am trying to create custom link in partner portal.

 

Any help?

ReidCReidC

Are you uploading to Documents, to Attachments or to Chatter Files?

Amitkumar15Amitkumar15

 I am uploading to document.

Amitkumar15Amitkumar15

Thanks Reid ....Problem has been solved now. I missed to give access to Document for some profiles.