I have a use case, in which I need to generate an envelope with a document to sign, once generated collect the URL of the document to sign and return it in my Apex function (this URL is retrieved by another external service), once the customer has signed the document I need to attach it in Salesforce in the customer file. I need to do all this using the ApexToolkit.
https://developers.docusign.com/docs/salesforce/salesforce101/apex-toolkit/
The embedded signing guide for the Apex Toolkit is found here which you could use to generate the embedded signing link and pass it along. A general note is the embedded signing link is only valid for 5 minutes.
https://developers.docusign.com/docs/salesforce/how-to/embedded-sending-signing/
The actual endpoint being used is below and states “The returned URL can be used only once and expires after 5 minutes. Do not store or email the returned URL.“
Reference: https://developers.docusign.com/docs/esign-rest-api/reference/envelopes/envelopeviews/createrecipient/
The document writeback will occur automatically if you send and sign using the Apex Toolkit inside of Salesforce.
DocuSign support can’t provide the exact code for you but if you run into an error that is where support can best assist.
Reply
Sign up
Already have an account? Login
You can login or register as either a Docusign customer or developer. If you don’t already have a Docusign customer or developer account, you can create one for free when registering.
Customer Login/Registration Developer Login/RegistrationDocusign Community
You can login or register as either a Docusign customer or developer. If you don’t already have a Docusign customer or developer account, you can create one for free when registering.
Customer Login/Registration Developer Login/RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.