Github repo: https://github.com/docusign/code-examples-apex
This GitHub repo includes code examples for Docusign's Apex Toolkit. The Apex Toolkit is a set of predefined Apex methods, classes, and utilities that encapsulate a set of the Docusign eSignature API functionality similar to an SDK, enabling you to integrate Docusign and Salesforce functionality into your Apex code.
- A free Docusign developer account; create one if you don't already have one.
- A Salesforce Developer Edition (account).
- Install the Apex Toolkit.
- Visual Studio Code. Your Visual Studio Code should be set up with the necessary Salesforce development tools including the Salesforce CLI.
- The Salesforce Extension Pack for Visual Studio Code
- Authorize your Salesforce Developer Account within Visual Studio Code. To do this press command + shift + P (on a Mac) or Ctrl + Shift + P (on Windows) to open the Command Palette. Then type SFDX:Authorize an Org and press Enter. In the browser window that opens, log into your Salesforce Developer Organization, then on the next screen, click Allow to grant access.
- Download or clone the code-examples-apex repo.
- Replace any placeholder IDs from the example code with template IDs or other IDs corresponding with your Docusign and Salesforce accounts.
- Deploy the code to Salesforce. To do this, navigate to the force-app/main/default folder in the menu on the left and right-click default, then select SFDX: Deploy Source to Org. Now when you sign into your Salesforce Developer Edition (account) you will find the clases and Lightning Web Components defined in this project.