Skip to main content

Hi,

I am implementing docusign envelope/ esignature api using docusign SDK,

I have implemented CreateEnvelopeAsync() successfully, but if i had put wrong email address for recipient signer then recipient signer email bounced or autoresponded.

 

in that situation i am updating recipient signer with sign here tabs, and recipient updated successfully. but when signer opens email and going to review envelope and to do sign then the sign here tab not displayed with AnchorString at specific AnchorYOffset and AnchorXOffset on the document.

So please provide any solution.

Thanks.

 

below the code of c# .net core for update recipient and tab

 public async Task<RecipientsUpdateSummary> UpdateRecipientsWithTabs(string envelopeId, DocuSign.eSign.Model.Recipients recipients, UpdateRecipientsOptions options = null)
 {
     try
     {
         RecipientsUpdateSummary updateSummary = null;
         OAuthToken authToken = AuthenticateWithJwt();
         Account acct = GetDocusignUserAccountInfo();
         var docuSignClient = new DocuSignClient(acct.BaseUri + "/restapi");
         docuSignClient.Configuration.DefaultHeader.Add("Authorization", "Bearer " + authToken.access_token);
         EnvelopesApi envelopesApi = new EnvelopesApi(docuSignClient);
         var result = await envelopesApi.UpdateRecipientsAsync(acct.AccountId, envelopeId, recipients);
         if (result != null)
         {
             updateSummary = result;

             if (updateSummary.RecipientUpdateResults != null && updateSummary.RecipientUpdateResults.Any(r => r.ErrorDetails == null))
             {
                 foreach (var upditem in updateSummary.RecipientUpdateResults)
                 {
                     foreach (var item in recipients.Signers)
                     {
                         var updatedtabs = await envelopesApi.UpdateTabsAsync(acct.AccountId, envelopeId, upditem.RecipientIdGuid, item.Tabs);
                     }
                 }
             }
         }
         return await Task.Run(() => updateSummary).ConfigureAwait(false);
     }
     catch (Exception ex)
     {
         _logger.LogEx(ex, ex.Message);
         throw ex;
     }
 }

 

So, first of all, if the envelope is sent, you cannot update it without using the “Correct” flow. You have to lock it, make changes (Correct) and then unlock it to send it again. 

https://www.docusign.com/blog/developers/common-api-tasks-correct-envelope-your-app shows you how to do that, including in C#

Second thing is that there are two endpoints to update recipients. 
1. https://developers.docusign.com/docs/esign-rest-api/reference/envelopes/envelopedocumenttabs/update/
2. https://developers.docusign.com/docs/esign-rest-api/reference/envelopes/enveloperecipienttabs/update/

I believe you may be using the wrong one You need to use #2 above, not #1.

Consider also that instead of fixing an envelope that was sent to the wrong email address, you can instead void it and send a new one to the correct email address. That may be a cleaner way to avoid confusion.



 


Thanks ​@Inbar.Gazit Currently i am resending envelope again if user entered wrong email address but i emphasizing update envelope because i don’t want to change envelope id and sending envelope again can increase database size due to data with file base 64 format (not deleting old data it remains in database).

Note: I am using c# docusign api sdk.

so let’s me check with api calls sdk method above given by you.

if any thing wrong then i will let you know.

thanks


Reply