简体   繁体   English

DocuSign eSignature REST API C# 客户端:相同的模板角色能否对单个文档执行多个签名步骤?

[英]DocuSign eSignature REST API C# Client : Can the same template role perform multiple signing steps on a single document?

Versions版本

  • Docusign C# Client- DocuSign.eSign.dll v3.1.5 Docusign C# 客户端- DocuSign.eSign.dll v3.1.5

  • .NetFramework 4.7.1 .NetFramework 4.7.1

Our Requirement我们的要求

We need to implement a signing workflow where the same template role can perform multiple actions on the same document.我们需要实现一个签名工作流,其中同一个模板角色可以对同一个文档执行多个操作。 A simplified example of this would be the following.一个简化的例子如下。

  • Single Template (Document)单个模板(文档)
  • Assigned a role called "Customer"分配了一个名为“客户”的角色
  • Step 1 - Customer must sign第 1 步 - 客户必须签名
  • Step 2 - Someone else must sign第 2 步 - 其他人必须签名
  • Step 3 - Customer must view document第 3 步 - 客户必须查看文件
  • Signing workflow completed签名工作流程完成

Below is a diagram from the DocuSign eSignature admin console where "CC" represents the Customer template role下面是来自 DocuSign 电子签名管理控制台的图表,其中“CC”代表客户模板角色

模板的DocuSign签名顺序图

Some example Code一些示例代码

Our application uses the C# Docusign Client (which is essentially a wrapper for Http Requests that need to be sent to the Docusign API) to tell DocuSign the ID of the template (Document) we need to populate and the name/email address of each recipient that has a role in the signing workflow.我们的应用程序使用 C# Docusign 客户端(它本质上是需要发送到 Docusign API 的 Http 请求的包装器)告诉 DocuSign 我们需要填充的模板(文档)的 ID 以及每个收件人的姓名/电子邮件地址在签名工作流程中发挥作用。

var envelope = new EnvelopeDefinition
{
    AllowRecipientRecursion = "true",
    TemplateId = templateId,
    TemplateRoles = peopleWithRolesOnTheTemplate.Select(person => new TemplateRole
    {
        RoleName = person.Role, // e.g "Customer"
        Name = person.Name,
        Email = person.Email
        // etc etc
    }).ToList(),
    Status = "sent"
};

var envelopesApi = new EnvelopesApi(ApiClient.Configuration);
var result = envelopesApi.CreateEnvelope(AccountId, envelope);

Expected Result预期结果

  • Our application has specified the name and email address for the "Customer" template role and sent a request to create an envelope to DocuSign我们的应用程序已为“客户”模板角色指定了姓名和电子邮件地址,并向 DocuSign 发送了创建信封的请求

  • We expect the resulting DocuSign envelope to have 3 signing steps, 2 of them belonging to the Customer template role.我们希望生成的 DocuSign 信封有 3 个签名步骤,其中 2 个属于客户模板角色。

  • We expect each step belong to the Customer role to be populated with the name and email address we specified in the code snippet above.我们希望属于 Customer 角色的每个步骤都填充我们在上面的代码片段中指定的姓名和电子邮件地址。

  • We expect the Customer role to receive the document TWICE, once to sign and the second time to view the document AFTER the recipient in Signing step 2 has signed.我们希望客户角色接收文档两次,一次签名,第二次在签名步骤 2 中的收件人签名后查看文档。

Actual Result实际结果

  • Customer Signs document, Second Recipient signs document, Customer is not sent document to view (step 3 not carried out)客户签署文件,第二个收件人签署文件,客户发送文件查看(第 3 步未执行)

  • Looking at some of the DocuSign logging, it seems like there are only TWO signing steps in the envelope, not 3. It's almost as if because two of the signing steps have the same role name, they are being merged into one signing step, of something along those lines.看一些DocuSign的日志,好像信封里只有2个签名步骤,而不是3个。几乎好像因为两个签名步骤有相同的角色名称,它们被合并为一个签名步骤,沿着这些路线的东西。

My Questions我的问题

  1. Does anyone know if the above bolded statement is correct?有谁知道上面加粗的说法是否正确?

  2. Is there ANY WAY we can use this DocuSign C# Client to create an envelope where the SAME ROLE can perform multiple signing steps?我们有什么方法可以使用这个 DocuSign C# 客户端来创建一个信封,其中 SAME ROLE 可以执行多个签名步骤? Or does each signing step in DocuSign have to belong to a separate role?还是 DocuSign 中的每个签名步骤都必须属于一个单独的角色?

You should give the customer two role names: customerSigner and customerCC.您应该为客户提供两个角色名称:customerSigner 和 customerCC。

When you use the template, you will set three roles:使用模板时,您将设置三个角色:

  • customerSigner客户签字人
  • someoneElseSigner其他签名者
  • customerCC客户CC

The name and email for the first and third roles will be the same.第一个和第三个角色的姓名和电子邮件将相同。

Also, DocuSign automatically (by default) sends a copy of the completed documents to the signers--so I'm not sure that you even need the cc role/step.此外,DocuSign 会自动(默认情况下)将已完成文档的副本发送给签名者——因此我不确定您是否甚至需要 cc 角色/步骤。

Finally, you said that最后你说

Customer must view document客户必须查看文件

To ensure that the customer has seen the documents in step 3 you may want to use the certified delivery recipient.为确保客户已看到第 3 步中的文档,您可能需要使用经过认证的收货人。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM