--- title: "RelayPullPDFAction" slug: "relaypullpdfaction" tags: ["sfdc", "sfdc-flow"] updated: 2025-09-24T19:52:10Z published: 2025-09-24T19:52:10Z canonical: "docs.relaynetwork.com/relaypullpdfaction" excludeFromExternalSearch: true --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.relaynetwork.com/llms.txt > Use this file to discover all available pages before exploring further. # Relay Pull PDF Action The **RelayPullPDFAction** is used to pull a PDF document generated from a Relay Power-up form submission. Once downloaded, a **ContentDocument** link to the specified **linkedEntityId** will be created. This flow action is always executed in a background job. If an error occurs during the PDF download, a record will be created in the [RelayLog__c](/docs/relaylog-c) custom object. Review [Example 5: Save Relay Power-up PDF to Salesforce](/docs/example-5-save-relay-power-up-pdf-to-salesforce) for a complete example flow. WARNINGThis action makes an external callout to Relay Network. Please be aware of any impacts this has against your Sales*f*orce API limits. [Salesforce Callout Limits](https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_callouts_timeouts.htm) ## Action Dialog ![](https://cdn.us.document360.io/6738087b-455d-402f-b70a-a44a4231547e/Images/Documentation/rn-sfdc-pull-pdf-action-dialog.png) ## Action Input Values | Field | Description | | --- | --- | | Client Id | Optional. This value is only required when your org is configured to support multiple Relay Client IDs. See: [Custom Metadata](/docs/relay-package-configuration) | | Description | A description for the *ContentDocument* | | Document Link Share Type | The permission granted to the user of the shared file in a library. This is determined by the permission the user already has in the library. If this field is not provided, then the value of **V** will be used. Valid values are: - **V** — Viewer permission. The user can explicitly view but not edit the shared file. - **C** — Collaborator permission. The user can explicitly view and edit the shared file. You can retrieve the ShareType for ContentDocumentLink, but you can't create a ContentDocumentLink with a ShareType of C from an Apex trigger. - **I** — Inferred permission. The user’s permission is determined by the related record. For shares with a library, this is defined by the permissions the user has in that library. Inferred permission on shares with libraries and file owners is available in API versions 21.0 and later. Inferred permission on shares with standard objects is available in API versions 36.0 and later. See Salesforce docs: [ContentDocumentLink](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_contentdocumentlink.htm) | | Document Link Visibility | Specifies whether this file is available to all users, internal users, or shared users. If this field is not provided, then the default value of **AllUsers** will be used. Valid values are: - **AllUsers** — The file is available to all users who have permission to see the file. - **InternalUsers** — The file is available only to internal users who have permission to see the file. - **SharedUsers** — The file is available to all users who can see the feed to which the file is posted. SharedUsers is used only for files shared with users, and is available only when an org has private org-wide sharing on by default. The SharedUsers value is available in API version 32.0 and later. See Salesforce docs: [ContentDocumentLink](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_contentdocumentlink.htm) | | Max Delayed Retries | Optional. Specifies how many retries the flow action should make In the event of an error pulling the PDF. A final failure will be recorded in the RelayLog__c object. | | Submission ID | **Required.** The Relay Power-up form submission ID. This identifies the PDF that should be downloaded and can be retrieved from the triggering Relay Power-up event. | | Title | A title for the **ContentDocument.** | ## Action Response Variable The action returns a custom Relay object **RelayPullPDFAction.****PullPDFResponse***.* | Field | Description | | --- | --- | | statusCode | A numeric value. - **400:** There was an error with one or more of the request parameters. Review the statusMessage field for the specific error. - **202:** The request was accepted and will be processed (e.g. the PDF will be downloaded) in a background job. If any errors occur in the background job, a record will be created in the **RelayLog__c** object. | | statusMessage | A human readable message describing the result of the action. | ## Related - [Example 6: Save Relay Power-up Attachment to Salesforce](/example-6-save-relay-power-up-attachment-to-salesforce.md)