Screen Flows
eSign Connect offers a way to utilize screen flows:
- Envelope Builder - Use the Envelope Builder screen component to utilize this feature.
Envelope Builder
- Navigate to Salesforce Setup > Process Automation > Flows.

- From the Flows page, click New Flow.

- Select Screen Flow.

- To create the Flow, we first need to create a RecordID variable. To start creating a new variable, click the box in the top left corner.

- Click on New Resources and select the Resource Type as Variable. Then set the Data Type as Text. For Availability Outside the Flow, check Available for input. Finally, click Done.
Please Note: The recordId variable is case and name sensitive so it must be called recordId.
- Now, we can add a Screen element.

- In the Components section, scroll or search to find the Envelope Builder screen component. Drag and drop the component onto the screen area.

- You will now need to select a Template Source. Below are the following options:
- Admin Predefined Template
- From a Text Variable
- You will need to create a text variable where the default value is the TemplateID which can be found in the url of the template in Template Builder:
[org url]/lightning/r/esignconnect__eSign_Templates__c/[TemplateID]/view

- You will need to create a text variable where the default value is the TemplateID which can be found in the url of the template in Template Builder:
[org url]/lightning/r/esignconnect__eSign_Templates__c/[TemplateID]/view
- You will have an additional option to add files to your selected template on automation send. You will need to create a text variable containing contentversion or contentdocument ids. When there are additional files added you will have the following additional options:
- Apply template to file - The file in your selected template will not be added to the envelope, however the additional files will have the template applied to each file.
- Add File to envelope - The file in your selected template will be included in the envelope as well as the additional files.

- Finally, you will have the option to select what happens on screen flow trigger. Below are the following options:
- Review the Envelope - The New Docusign Envelope modal will appear.
- Skip envelope review and go to Docusign to tag and send - The New Docusign Envelope modal will not appear, however the Docusign iframe will appear.
- Immediately send the envelope without any user review - Neither the New Docusign Envelope modal nor the Docusign iframe will appear.

- Once you have completed setting up the rest of your screen flow, click Done.

- Click Save.

- Click Activate.

- For a Screen Flow you will need a method to trigger the flow, we will be using an action. Go to Salesforce Setup, and click on Object Manager.

- Select the desired Object.

- From the right-hand side, select Buttons, Links, and Actions.

- Select New Action.

- In the New Action page, set the Action Type to Flow. Then, select the created flow and provide a name for your action. Once completed, click Save.

- Finally, you will need to add your action to your page layouts. Click on Page Layouts. Then select the desired page layout.

- Select Mobile & Lightning Actions. Under Salesforce Mobile and Lightning Experience Actions select override the predefined actions. Drag and drop your created action into the section. Click Save.

- Now you will be able to trigger your eSign Connect Screen Flow through a button.
