5. Connect Salesforce with the Application Service and DocuSign

This article is applicable only if you use template with the DocuSign sign method.

In case to process signatures by an e-Signature provider, it is necessary to connect the Salesforce organization with the App Service and the e-signature provider. Currently, you can connect only to the DocuSign provider. Read more at DocuSign support portal.

1. Save 18-character Code of your Salesforce Organization

  1. Go to SetupCompany SettingsCompany Information.

  2. Copy and save the Salesforce.com Organization ID value.

    sf org id

  3. Open any of Salesforce 15 to 18 characters converters, for example, this one.

  4. Convert the Salesforce.com Organization ID value to 18-character format and save it.

2. Create DocuSign Account and Set Up Connect Configuration

  1. Go to https://developers.docusign.com.

  2. In the Developer account picklist, select Create account.

    docusign create account

  3. Fill out the form and click Get Started.

  4. Proceed to the account activation link from your email box.

  5. Set password and click Log In.

  6. Click on your account icon and select My Apps & Keys.

    docusign my apps keys

  7. Click Add App and Integration Key.

  8. In the App Name field, type in an application name (for example, CT Sign).

  9. Click Create App.

  10. Copy and save the Integration Key value.

  11. In the Authentication section, click Add Secret Key. Copy and save the secret key.

  12. Click Generate RSA.

  13. Copy and save the Private Key value.

  14. In the Additional Settings section, click Add URI.

  15. In the Redirect URIs field, type in https://sign.customertimes.com/auth/docusign/callback.

  16. Click Save.

  17. In the left menu, in the Integrations section, click Connect.

    docusign integrations connect

  18. In the Add configuration picklist, select Custom.

  19. Fill out the fields:

    • In the Listener Settings section:

      docusign listener settings

    • In the Event Settings section:

      docusign event settings

      • Data Format: Legacy.

      • In the Trigger Events subsection:

        1. In the Envelope and Recipients list, select all available checkboxes.

        2. In the Include Data list, select checkboxes:

          • Time Zone Information;

          • Envelope Voided Reason;

          • Document fields;

    • In the Associated Users/Groups section:

      docusign users groups

      1. Click Select Users/Groups to include.

      2. Select your account.

    • In the Integration and Security Settings section:

      docusign integration security settings

      1. Select Include Basic Authentication Header checkbox.

      2. Fill in the User Name and Password fields.

        It does not have to be username and password from your DocuSign account, you can specify any username and password. But they must match the username and password you will specify in the DocuSign Connect tab.

  20. Click Add Configuration.

3. Connect the Salesforce Instance with the Application Service

  1. Go to SetupCSP Trusted Sites.

  2. Click on AWS.

    trusted sites aws

  3. Click Edit.

  4. In the CSP Directives section, select all checkboxes.

    CSP Directives

  5. Click Save.

  6. Go to CT Sign Control PanelCT Sign App.

  7. In the Application Url field, specify the path https://sign.customertimes.com and click Connect.

  8. On the next page, enter your Salesforce credentials and log in.

  9. Allow CT Sign to access your data and perform requests.

    App Service Allow Access

If successful, you will be redirected to the CT Sign app tab, and the token to access the Application Service will be added to the protected Sign Credentials custom setting.

Please re-enter DocuSign parameters after promoting your integration key from your developer account to a production DocuSign account. Documents sent from the developer DocuSign account are not legally binding and are watermarked.

4. Connect DocuSign App

  1. Go to CT Sign Control PanelDocuSign App.

  2. Enter keys of the DocuSign app in the DocuSign account:

    • Client Id.

    • Client Secret.

    • Client Private Key.

      The value should be entered with the specific header and -----BEGIN RSA PRIVATE KEY----- and -----END RSA PRIVATE KEY-----.

  3. Select the Production checkbox if you use the DocuSign production account.

  4. Click Send.

    If you see an error message, add http://localhost:5000/auth/docusign/callback as a second redirect URI in the DocuSign App configuration and try again.

  5. On the new page, enter your credentials of the developer or production DocuSign account.

  6. Allow CT Sign to access your data and perform requests.

If successful, you will be redirected to the DocuSign App tab.

5. Send Authentication Data to DocuSign

On the DocuSign Connect tab, specify the following to receive the current status of the document sent to sign in the DocuSign:

  1. Go to CT Sign Control PanelDocuSign Connect.

  2. Enter the Username and Password of the DocuSign Connect.

  3. Click Connect.

The setup is complete.

``