Skip to content

CreateRecipientViewAsync is returning UNKNOWN_ENVELOPE_RECIPIENT when trying to create a second one  #446

@LSPsyko

Description

@LSPsyko

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

No one assigned

    Labels

    area-apiall issues related to eSign api

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions