Docusign 为每个文档捕获多个签名
Docusign capturing multiple signatures per document
我正在尝试在 C#
中复制此示例 https://github.com/docusign/sample-app-loanco-nodejs/blob/master/routes/loan-sailboat.js 的逻辑
我希望能够为同一文档(两个不同的收件人)捕获两个签名,但无法显示第二个签名选项卡。
这是一个片段:
Signer signer1 = new Signer {
Email = signerEmail,
Name = signerName,
ClientUserId = signerClientId,
RecipientId = "1",
RoutingOrder = "1"
};
Signer signer2 = new Signer
{
Email = "asdklfasdf@asdf.com",
Name = "bobby boucher",
ClientUserId = "2000",
RecipientId = "2",
RoutingOrder = "2"
};
// Create signHere fields (also known as tabs) on the documents,
// We're using anchor (autoPlace) positioning
//
// The DocuSign platform seaches throughout your envelope's
// documents for matching anchor strings.
SignHere signHere1 = new SignHere
{
XPosition = "170",
YPosition = "418",
Optional = "false",
StampType = "signature",
DocumentId = "3",
PageNumber = "1",
RecipientId = "1",
Name = "SignHere One",
};
SignHere signHere2 = new SignHere
{
XPosition = "200",
YPosition = "418",
Optional = "false",
StampType = "signature",
DocumentId = "3",
PageNumber = "1",
RecipientId = "2",
Name = "SignHere Two"
};
// Tabs are set per recipient / signer
Tabs signer1Tabs = new Tabs
{
SignHereTabs = new List<SignHere> { signHere1 }
};
signer1.Tabs = signer1Tabs;
Tabs signer2Tabs = new Tabs
{
SignHereTabs = new List<SignHere> { signHere2 }
};
signer2.Tabs = signer2Tabs;
// Add the recipient to the envelope object
Recipients recipients = new Recipients
{
Signers = new List<Signer> { signer1, signer2 }
};
envelopeDefinition.Recipients = recipients;
编辑:解决方案是创建两个查看请求以同时捕获文档上的两个唯一签名。
您有两个签名者,都设置了 ClientUserId,这意味着您为他们创建了两个视图以使用嵌入式签名进行签名?
第一个签名后,第二个签名。
大概是这个原因。如果你想同时完成 - 将 RoutingOrder 都设置为“1”。
如果您想发送电子邮件 - 删除 ClientUserId.
当然,您需要两个单独的嵌入式签名请求 - 每个签名者一个。
我正在尝试在 C#
中复制此示例 https://github.com/docusign/sample-app-loanco-nodejs/blob/master/routes/loan-sailboat.js 的逻辑我希望能够为同一文档(两个不同的收件人)捕获两个签名,但无法显示第二个签名选项卡。
这是一个片段:
Signer signer1 = new Signer {
Email = signerEmail,
Name = signerName,
ClientUserId = signerClientId,
RecipientId = "1",
RoutingOrder = "1"
};
Signer signer2 = new Signer
{
Email = "asdklfasdf@asdf.com",
Name = "bobby boucher",
ClientUserId = "2000",
RecipientId = "2",
RoutingOrder = "2"
};
// Create signHere fields (also known as tabs) on the documents,
// We're using anchor (autoPlace) positioning
//
// The DocuSign platform seaches throughout your envelope's
// documents for matching anchor strings.
SignHere signHere1 = new SignHere
{
XPosition = "170",
YPosition = "418",
Optional = "false",
StampType = "signature",
DocumentId = "3",
PageNumber = "1",
RecipientId = "1",
Name = "SignHere One",
};
SignHere signHere2 = new SignHere
{
XPosition = "200",
YPosition = "418",
Optional = "false",
StampType = "signature",
DocumentId = "3",
PageNumber = "1",
RecipientId = "2",
Name = "SignHere Two"
};
// Tabs are set per recipient / signer
Tabs signer1Tabs = new Tabs
{
SignHereTabs = new List<SignHere> { signHere1 }
};
signer1.Tabs = signer1Tabs;
Tabs signer2Tabs = new Tabs
{
SignHereTabs = new List<SignHere> { signHere2 }
};
signer2.Tabs = signer2Tabs;
// Add the recipient to the envelope object
Recipients recipients = new Recipients
{
Signers = new List<Signer> { signer1, signer2 }
};
envelopeDefinition.Recipients = recipients;
编辑:解决方案是创建两个查看请求以同时捕获文档上的两个唯一签名。
您有两个签名者,都设置了 ClientUserId,这意味着您为他们创建了两个视图以使用嵌入式签名进行签名? 第一个签名后,第二个签名。
大概是这个原因。如果你想同时完成 - 将 RoutingOrder 都设置为“1”。 如果您想发送电子邮件 - 删除 ClientUserId.
当然,您需要两个单独的嵌入式签名请求 - 每个签名者一个。