Documill Dynamo
Breadcrumbs

Using Salesforce data in E-Signing Emails

Since Salesforce data may not be visible to e-signing recipients after the first signer, an additional step is required to ensure that all signers can properly view the included Salesforce data.

This step is required if the workflow includes more than one signer or if forwarding is enabled in the settings.

Follow this step-by-step guide to ensure that the relevant Salesforce data is included in every email notification.


  1. Identify the needed Salesforce data

    First, identify which Salesforce fields are being used in the Signature Request Email (e.g., Opportunity Annual Total Price).

    {A2CB62CA-F3B5-46A5-8CC2-D99D3006E9C6}-20251204-072547.png


    These fields are sourced from the Opportunity record, as shown in the Element tab.

  2. image-20251204-072755.png
  3. Save the data into the document’s metadata.

    Open your document and go to the Data tab, then navigate to Record declaration.

    image-20251204-073009.png


    This opens the background template logic where all Salesforce data is queried.

    {201FE7CD-2D31-4993-8C23-4796B03C6731}-20251204-073105.png


    In the command search box on the left side of the screen, search for the command addMapEntry.

    {F6C22B85-3B54-4C13-ABF1-05B84185C6C9}-20251204-073159.png


    Drag the addMapEntry command and place it directly beneath the query that retrieves the relevant Salesforce field (e.g., the query pulling Opportunity.Annual_Total_Price__c).

    {2DC9991A-B0A5-4326-AE03-27D52A17B4EE}-20251204-073335.png


    Click the addMapEntry command you just added; this will open the command configuration panel on the right side of the screen.

    {47AB8236-7F92-426D-BCC1-B514ECD7EFE8}-20251204-073421.png


    key:This is the name you will use to reference the Salesforce field in the email template in the next step. It is required and can be any string you choose (e.g., TotalPrice). Do not use spaces in the key.

    value:This is the actual Salesforce field value you want to store for later use. Example: ${opp.Annual_Total_Price__c}.

    map:This specifies where the key-value pair will be stored. In nearly all cases, use: ${dynFields}.

    The final addMapEntry configuration should look like this:

    {4DAD0AEF-8699-4FB5-8299-7C92EC4F2E29}-20251204-073829.png

    Repeat this process for every Salesforce field referenced in the signature request email template.


  4. Add the stored fields to the email template

    Now that the required Salesforce data has been stored in the dynFields map, you can make it available again in the email template.

    Return to the Signature Request Email template and locate each Salesforce merge field already present in the email and click it.

    {B9363439-57F0-4E0E-A5E9-801850AEB449}-20251204-074015.png


    In the Element tab, update the Content field to reference the value stored in dynFields using the key you defined earlier.

    {0B4D0BB6-8A4A-46C6-AB64-F0B24D3E3651}-20251204-074054.png


    Repeat this process for every Salesforce field used in the email template.

For templates created before June 2024, use conf instead of dynFields.

Note: This modification is only required for data pulled from Salesforce. Standard fields such as recipient name, document name, or user information do not need to be changed.