Sending Response PDFs to Salesforce 


In this Article
Related Articles

Introduction

Please Note: This feature is being slowly rolled out to Premier, Enterprise, and Compliance Cloud customers. If you are on one of these plans and do not yet see this feature in your account, it will become available in the coming days. 

When setting up your Salesforce connector, you can choose to send a PDF of the response to Salesforce. This feature supports all Salesforce objects, including Attachments, ContentVersion (Files), and more. 

Contents of the PDF include:


Requirements

This feature is available on Premier, Enterprise and Compliance Cloud plans only. 


Setup

To set up this feature, you'll need to open a Salesforce connector in the After Form Submitted location. Currently it is not possible to create and send PDFs on submission. The PDF alias can be used on any Salesforce object. However, it should only be used on file objects: Attachment, ContentDocument, etc. 

Attachments 

  1. Create a new Attachment record
  2. Map the Body field to "a formula or text" 
  3. For the formula, use the following alias: %%RESPONSE_PDF%%
  4. Define a File Name (be sure to include the extension .pdf)
  5. Define the Parent Record ID by either mapping it directly to an ID, or mapping it to "the ID of an object above"

Note: The formula field can ONLY contain %%RESPONSE_PDF%%. You cannot add text at the beginning or end of the file by adding it to the formula field.


Salesforce Files (ContentVersion)

  1. Create a new ContentVersion record
  2. If the ContentVersion step is a dependent step, set the Relationship to reference the parent object
  3. If the ContentVersion step is not a dependent step, set the Relationship to "None" and map the First Publish Location ID to "the ID of an object above" and select the object you wish to relate the File to
  4. Map the Version Data field to "a formula or text"
  5. For the Version Data formula, use the following alias: %%RESPONSE_PDF%%
  6. The Path On Client needs to be mapped to determine the file type, so you can insert any name as long as it contains ".pdf" at the end
  7. You can map the Title field to a formula as well, with either a set title for all uploads or a dynamic title using aliases
  8. You will also need to map the Content Origin field. Mapping a formula with a value of "C" will mean that the Content is from a library (or an external source). Mapping an "H" will mean the file is to be stored in a chatter post (chatter must be enabled). For this setup, we recommend using an "H".
  9. Finally, for the Content Location, you can map an "S" for the file being within Salesforce, and an "E" for the file being external to Salesforce. For this setup, we recommend mapping an "S".  

Terms of Service · Privacy Policy