Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

after_document possibly not working in client #8

Open
quakernbq opened this issue Mar 5, 2020 · 0 comments
Open

after_document possibly not working in client #8

quakernbq opened this issue Mar 5, 2020 · 0 comments

Comments

@quakernbq
Copy link

quakernbq commented Mar 5, 2020

Good Afternoon

We are trying to chain a document to sign after another one following these steps:

-Call to DocumentsCreateAsync to first document, and returns document info filled and OK.
-Call to DocumentsCreateAsync to second document, and returns document info filled and OK.
-Call this our method, filling signer AfterDocument:

//Sign document  method
  public Task<SignRequest.Model.SignRequest> SignDocuments(Document firstDocument, Document extraDocument, User from)
        {
            var signInstance = new SignrequestsApi();

            var signers = report.Signers
               .Where(s => s.ToWorkWith)
               .Select(s => this.PrepareSigner(s, s.Signatory, s.InPerson, s.Copy));

            signers.ToList().ForEach(s => s.AfterDocument = extraDocument.Uuid);

            var sign = new SignRequest.Model.SignRequest(
                who: SignRequest.Model.SignRequest.WhoEnum.Mo,
                fromEmail: from.Email,
                fromEmailName: from.DisplayName,
                document: firstDocument.Url,
                redirectUrl: null,
                signers: signers.OrderBy(s => s.Order).ToList()
            );

            return signInstance.SignrequestsCreateAsync(sign);
        }

Results:

-When signers sign the first document, the page redirects to sign request main webpage, instead to second document.

What we have tried:

-In the line "signers.ToList().ForEach(s => s.AfterDocument = extraDocument.Uuid);", we tried with .Uuid, .Url...and so on.

What have to be done to achieve a second document chained signature?.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant