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
Sarat Chandra PanamgipalliSarat Chandra Panamgipalli 

How to access an attachment from an object realted list(Notes & Attachments or Files) to Public page? I have tried to get using the ContentDocumentId by using the below query? Please suggest

SELECT ContentDocumentId, LinkedEntityId FROM ContentDocumentLink where LinkedEntityId ='Related Object ID'
Rajesh3699Rajesh3699
Hi 

What type of attahment it is..? Is it an image..or doc file..?

and If the public page is VF page hosted on the community or site..?

Thank You,
Rajesh Adiga P.
Sarat Chandra PanamgipalliSarat Chandra Panamgipalli

Hi Rajesh,
Thanks for the response.

It is a PDF and the public page is a VF page hosted on the community.
Thank you
Sarat Chandra