**Legacy** DocuSign eSignature for Salesforce - Merge Field Recipe to Add Account Name to Document

**This issue pertains to legacy DocuSign eSignature for Salesforce.**


This article will walk you through populating the Account name on an envelope sent from an Opportunity. This is not out of the box functionality for our legacy package and is outside of Support scope. This is supported in the updated DocuSign Apps Launcher version of DocuSign eSignature for Salesforce.


Let’s say you need to send a document out of an Opportunity in Salesforce and want to automatically populate the Account Name onto that document. 

The first thing you need to do is create a custom tag:
  1. From Salesforce, click on DocuSign Admin tab.
  2. Click on Custom Tags. This section will display all your merge fields, custom tags and shared custom tags.
  3. Click New to create a new Custom Tag.
  4. Type a name for the custom tag in the Custom Tag Name field: “Opportunity Account Name”.
  5. Select the Relate to Salesforce checkbox to begin mapping to the data in Salesforce. The Salesforce Object lists appear below the checkbox.
  6. In the first drop-down list, select the Salesforce Object that the document will be sent from. In this example it’s Opportunity.
  7. Select the information from the Opportunity that you want to bring into the document. In this case since it’s the account name, select Account from the drop-down list, and then Account Name.
Note: The first drop-down field indicates where this custom tag will be sent from. The custom tag example we walked through can only be used on a document sent from an Opportunity. If you’d like to set up a merge field for Account Name when sending from a Contact, you’ll need to create a separate custom tag with Contact selected in the first drop-down list.

Now that I’ve set up a custom tag, let’s verify that it works:
  1. Select an Opportunity
  2. Click on Send with DocuSign button.
  3. Make sure you have a document and recipient specified, then click Next.
  4. Click on Custom to access the Custom Tag list.
  5. Drag and Drop the tag onto the document and you should see the Salesforce value appear in the text field.
After you have created your merge fields, keep in mind a few items:
  1. The custom tag names should reflect the data it is mapping. This will help your users easily identify the correct tag for each use case.
  2. If the tags were working at one point and suddenly stop working, first thing to check is the Connect settings. If your DocuSign eSignature for Salesforce configuration changes, it will impact how merge fields function.