gurvinder

Multiple Signers on Different Documents under single package

0 votes
Hi There, I want to build a package with two different documents with two different signers and Signer 1 will sign on just document 1 and Signer 2 will sign on just document 2, how can I do this under same package? Thanks, Gurvinder

Approved Answer

Reply to: Multiple Signers on Different Documents under single package

0 votes
Hey Gurvinder, Looks like I did miss that you were signing for them both automatically. I was more focused on the same email address for both. My apologies. To sign for a second signer that is not the API key holder, you would need to use the call from the following guide: Bulk Sign for a Signer that's not the API Key holder Hope this helps.

- Michael

Director, Partner and Developer Technologies, OneSpan

Facebook - Twitter - LinkedIn


Reply to: Multiple Signers on Different Documents under single package

0 votes
Hey Gurvinder, This is not a problem at all. Signers are defined on the package level, not the document level, so you'd simply add your two signers, .WithSigner(...) and .WithSigner(...) at the package level, then, inside document 1's builder, you'd have .WithSignature(...for Signer1...) and in document 2's builder, you'd have .WithSignature(...for Signer2...). That's basically it. Let me know if you run into issues or would like to see an actual sample block of code. :)

- Michael

Director, Partner and Developer Technologies, OneSpan

Facebook - Twitter - LinkedIn


Reply to: Multiple Signers on Different Documents under single package

0 votes
Hi Michael, What if I want them to be signer by user with same email but different name? In our application, we generate two insurance certificates, and they are underwritten by different companies, and I want them to be digitally signer automatically before delivering it two user. For achieving this, I tried adding another email as sender in my sandbox account and made that the second signer and when I do that, the certificate 1 is automatically signed by signer 1, which is from the email of my Owner account, but the it doesn't Certificate 2 doesn't get signed with signer 2, which is another sender I added to my account. I have completed the registration process for the sender, but it still doesn't work. So, instead of doing that, I tried creating two sender with same email (as shown in code below) but both are signed by signer 1 (which I beleive is due to same email?). What can I do for achieving the functionality I want?
DocumentPackage documentPackage = PackageBuilder.NewPackageNamed("Test Package")
                                                        .WithSigner(SignerBuilder.NewSignerWithEmail("[email protected]")
                                                                  .WithFirstName("John")
                                                                  .WithLastName("Doe")
                                                                  .WithCustomId("Signer1"))
                                                        .WithSigner(SignerBuilder.NewSignerWithEmail("[email protected]")
                                                                  .WithFirstName("Jane")
                                                                  .WithLastName("Doe")
                                                                  .WithCustomId("Signer2"))
                                                        .WithDocument(DocumentBuilder.NewDocumentNamed("sampleAgreement")
                                                                    .FromStream(fs, DocumentType.PDF)
                                                                    .WithSignature(SignatureBuilder
                                                                                .SignatureFor("[email protected]")
                                                                                   .OnPage(0)
                                                                                   .AtPosition(175, 165))
                                                                     )
                                                         .WithDocument(DocumentBuilder.NewDocumentNamed("sampleAgreement")
                                                                    .FromStream(fs2, DocumentType.PDF)
                                                                    .WithSignature(SignatureBuilder
                                                                                .SignatureFor("[email protected]")
                                                                                   .OnPage(0)
                                                                                   .AtPosition(175, 165))
                                                                     )
                                                        .Build();
            PackageId packageId = eslClient.CreateAndSendPackage(documentPackage);
            
            eslClient.SignDocuments(packageId);
Thanks, Gurvinder

Reply to: Multiple Signers on Different Documents under single package

0 votes
You cannot use the same email twice. This should fail on you. Is it not? If it's not, it sounds like it's only accepting one and ignoring the other with the same email. You need to use different email addresses for each signer and then you should have no issues.

- Michael

Director, Partner and Developer Technologies, OneSpan

Facebook - Twitter - LinkedIn


Reply to: Multiple Signers on Different Documents under single package

0 votes
Hi Michael, I tried adding one more sender to my account but document for that sender didn't get signed automatically in my sandbox account. What I did was following : 1. In admin account, in senders I invited my other account 2. Registered for that account with the email I got. 3. In the signer 2, added that email as sender and added that email in signatureFor. The 1st document with main admin account gets signed but second doesn't. This is in the sandbox account. Did I miss anything? Thanks, Gurvinder

Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off