0
votes

After running the console app, our users get an email with the signing link to Docusign making them remote signers.

What I want to be able to do is get those links from their emails.

I did some research and this is what each url is made of

https://demo.docusign.net/Member/EmailStart.aspx?

a=65d11cf7-d3b7-49a1-8000-6192b6227d71& <<< Unique Activity ID? Always different in all URLs

acct=a0e816ac-3919-475e-a826-34c2c33f90e7& <<< Some kind of role ID (stays same between envelopes and users of the same role, I have it for my roles..just don't know how to get it programmatically

er=62378ec0-39ce-495e-84e4-e0e598fab3cc& <<<< envelopesApi.ListRecipients(.....) .Signers[n].RecipientIdGuid, able to get it

espei=30cec285-39cd-45a3-bb8e-7bd0560dcd80 <<<< ENVELOPE ID, able to get it

The first parameter is the main focus of my question - it is a total mistery what is it and how to get it

The second parameter looks like a role_id, but I don't know how to get it other than hard-coding values for each of my roles

The other two parameters aren't a concern.

Does anybody know how to get ahold of the first two parameters using the C# Docusign API?

Or even better, is there a way to get the recipients signing url links using the same API?

1
What are you going to do with the signing URL? DocuSign lets you obtain signing URL if its an embedded recipient. For remote signers there is no way to obtain the signing URL. Only signer will know the URL. - Praveen Reddy
Save it in a database (CRM) and then it will get retrieved by the MVC App and displayed to users as a list. I guess the MVC app could embed the signing but the thing is I want them to use the DocuSign UI, not mine. - Erik
Unfortunately Docusign does not support what you are asking. What you can do is mark the recipient as an embedded recipient when you create the envelope. Then whenever you want to display the Signing page on your MVC app, make a call to the createRecipient:EnvelopeViews api and retrieve the signing URL. The embedding signing URL will only be active for 5 minutes. You can display it in a iFrame in your APP. Look at this page for optimizing your embedded signing experience - Praveen Reddy
Glad it helped. Please mark the answer as accepted. - Praveen Reddy

1 Answers

1
votes

To obtain the signing URL you will have to set the recipient as an embedded recipient.

After the envelope is created, use the createRecipient:EnvelopeViews api to retrieve the Signing URL.

You have to set the recipient clientUserId parameter to mark a recipient as an embedded recipient.

Request

{
  "userName": "name",
  "email": "[email protected]",
  "clientUserId": "clientUserId",
  "authenticationMethod": "email",
  "returnUrl": "your app url"
}