Skip to main content
Conga Support

Retrieving a document stored in a Salesforce file

You can use a query to retrieve files stored in Salesforce.

To create a query:

SELECT ContentDocument.id 

FROM ContentDocumentLink 

WHERE LinkedEntityId = '{pv0}' 

To add the query to the button URL and select the File:

&Qvar0ID=[QueryIDfromAbove]

&Qvar0Format=10000

&TemplateId={qvar0} 

Limited to 20 templates or document files.