darrunategui | Posts: 12

Signature Name is not being persisted

0 votes
I am seeing a possible bug where I am creating a package with 1 document, 1 signer, and 1 signature. When creating the package, I give the signature a unique name using the
.WithName(string signatureName)
method. Then, when I use the eSignLive client to retrieve the documentPackage, the signature name is null. You can find a simple example shown below
var signer1 = (Email: "[email protected]",
                           Id: "signer-1",
                           FirstName: "David",
                           LastName: "NormalGmail",
                           Company: "ABC Company",
                           Title: "Software Developer");

            var doc = (Name: "Testing Doc",
                       Id: "DocId1");

            var anchor = (Text: "Please Sign",
                          Occurrence: 0,
                          Character: 0,
                          Width: 200,
                          Height: 50);

            PackageId packageId = null;
            using (var fs = File.OpenRead(@"test.pdf"))
            {
                var pkg = PackageBuilder.NewPackageNamed(doc.Name + " Package")
                              .WithSettings(DocumentPackageSettingsBuilder.NewDocumentPackageSettings())
                              .WithSigner(SignerBuilder
                                          .NewSignerWithEmail(signer1.Email)
                                          .WithCustomId(signer1.Id)
                                          .WithFirstName(signer1.FirstName)
                                          .WithLastName(signer1.LastName)
                                          .WithCompany(signer1.Company)
                                          .WithTitle(signer1.Title))
                              .WithDocument(DocumentBuilder
                                            .NewDocumentNamed(doc.Name)
                                            .FromStream(fs, DocumentType.PDF)
                                            .WithId(doc.Id)
                                            .WithSignature(SignatureBuilder.SignatureFor(signer1.Email)
                                                           .WithName("MySignatureName")
                                                           .WithPositionAnchor(TextAnchorBuilder.NewTextAnchor(anchor.Text)
                                                                               .AtPosition(TextAnchorPosition.TOPLEFT)
                                                                               .WithOccurrence(anchor.Occurrence)
                                                                               .WithCharacter(anchor.Character)
                                                                               .WithOffset(0, -anchor.Height)
                                                                               .WithSize(anchor.Width, anchor.Height)))).Build();

                packageId = eslClient.CreateAndSendPackage(pkg);

            }
            // dig into the below retreived variables. You'll see the signature name is null instead of "MySignatureName"
            var package = eslClient.GetPackage(packageId);
            var signatures = eslClient.ApprovalService.GetAllSignableSignatures(package, doc.Id, signer1.Id);
Attached is the test pdf

Attachments
test-1.pdf304.62 KB
Approved Answer
harishaidary | Posts: 1812

Reply to: Signature Name is not being persisted

0 votes
It seems indeed that there is a bug in the SDK. The signature name does get set but the SDK isn't able to retrieve it. I will follow up with our maintenance team and get back to you. Are you using the signature name to retrieve data back? If so, you should be assigning an id instead of a name, as it is with ids that retrieval of data is done in esignlive.

darrunategui | Posts: 12

Reply to: Signature Name is not being persisted

0 votes
I believe I can use your suggestion and use the SignatureId field instead. My question to you is as follows (as I'm worried it might cause issues) Can we re-use the same signatureId for signatures across different documents in different packages? e.i. Package1 >Document1 >Signature1 with Id "myId" Package2 >Document1 >Signature1 with Id "myId"

harishaidary | Posts: 1812

Reply to: Signature Name is not being persisted

1 votes
Yes of course. Across different packages, you can keep the same ids for documents, signatures, signers, etc. It is only the package id that is unique across your packages, which of course you don't have control of :)

darrunategui | Posts: 12

Reply to: Signature Name is not being persisted

0 votes
Hi, I wanted to follow up about this bug to see if it has been fixed or if there is a timeline on when this will be fixed. Thanks, David

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