-
Notifications
You must be signed in to change notification settings - Fork 164
Open
Labels
area-apiall issues related to eSign apiall issues related to eSign api
Description
Hi,
When trying to recreate an ViewUrl for an envelop, I got the "CreateRecipientViewAsync is returning UNKNOWN_ENVELOPE_RECIPIENT". It works for the first time but not a second opening
Thks, code below
```
EnvelopesApi envelopesApi = CreateEnvelopApi();
//var envelop = await envelopesApi.GetEnvelopeAsync(_account!.AccountId, existingEnveloppe.EnvelopeId);
var recipients = await envelopesApi.ListRecipientsAsync(_account!.AccountId, existingEnveloppe.EnvelopeId);
var signer = recipients.Signers.FirstOrDefault(x => x.Email == student.Email);
var token = _configuration.GetOptions<DocusignOptions>().ApiKey;
string returnUrl = $"{_configuration.GetOptions<DocusignOptions>().ReturnUrl}/dsreturn?studentId={studentId}&envelopId={existingEnveloppe.EnvelopeId}&token={token}";
var viewRequest = new RecipientViewRequest
{
ReturnUrl = returnUrl,
ClientUserId = signer.ClientUserId,
UserId = signer.UserId,
Email = signer.Email,
AuthenticationMethod = "none",
//RecipientId = signer.RecipientId,
};
ViewUrl? embedded = await envelopesApi.CreateRecipientViewAsync(_account.AccountId, existingEnveloppe.EnvelopeId, viewRequest);
return embedded.Url;
Metadata
Metadata
Assignees
Labels
area-apiall issues related to eSign apiall issues related to eSign api