简体   繁体   English

如何使用 DocuSignAPI .NET Client 将文档发送到客户的多个个人电子邮件 ID 以对其进行签名?

[英]How to send document to client's more than one personal email ids to sign it using DocuSignAPI .NET Client?

I've setup a developer sandbox environment of DocuSign.我已经设置了 DocuSign 的开发人员沙箱环境。 Using its C#.NET API Client, I want to send a document for signing to client's more than one personal email ids.使用它的 C#.NET API 客户端,我想发送一个文档来签署客户的多个个人电子邮件 ID。 Once the client opens any email to see and sign it, the corresponding DocuSign envelope state should get updated to Completed.一旦客户端打开任何电子邮件以查看并签名,相应的 DocuSign 信封状态应更新为已完成。

Also, I tried to achieve the above behavior through multiple signer recipients, but the envelope state gets marked completed, when all the signer recipients sign the document.此外,我尝试通过多个签名者收件人实现上述行为,但是当所有签名者收件人签​​署文档时,信封状态被标记为已完成。 Here I want any signer recipient sign should be enough to complete the document signing workflow.这里我希望任何签名者接收者签名都应该足以完成文档签名工作流程。

Please suggest how to get it done请建议如何完成它

Regards,问候,

A一种

In order to deliver an envelope to several emails in a single role, you'll need to create a Signing Group .为了以单个角色将信封发送到多封电子邮件,您需要创建一个签名组 Signing Groups can be created and managed through the API , so you'll be able to do that programatically. 可以通过 API 创建和管理签名组,因此您可以以编程方式执行此操作。

While you'll need to implement your own business logic and error checking, a sample of creating a Signing Group in c# looks like:虽然您需要实现自己的业务逻辑和错误检查,但在 c# 中创建签名组的示例如下所示:

        SigningGroup signingGroup = new SigningGroup();
        signingGroup.GroupName = "SigningGroup_" + DateTime.UtcNow.Ticks.ToString(); 
        signingGroup.GroupType = "sharedSigningGroup";
        signingGroup.Users = new List<SigningGroupUser>();

        SigningGroupUser signingGroupUser1 = new SigningGroupUser();
        signingGroupUser1.UserName = "Example Signer";
        signingGroupUser1.Email = "signer@example.com";
        signingGroup.Users.Add(signingGroupUser1);

        SigningGroupUser signingGroupUser2 = new SigningGroupUser();
        signingGroupUser2.UserName = "Example Signer";
        signingGroupUser2.Email = "personal.email@example.com";
        signingGroup.Users.Add(signingGroupUser2);

        SigningGroupInformation signingGroupInformation = new SigningGroupInformation();
        signingGroupInformation.Groups = new List<SigningGroup> { signingGroup };

        SigningGroupsApi signingGroupsApi = new SigningGroupsApi(apiClient.Configuration);
        SigningGroupInformation newGroupInfo = signingGroupsApi.CreateList(accountId, signingGroupInformation);

        string newGroupId = newGroupInfo.Groups[0].SigningGroupId;

To use the Signing Group in an envelope, define a signer with that group ID:要在信封中使用签名组,请使用该组 ID 定义签名者:

        Signer signer = new Signer
        {
            SigningGroupId = newGroupId,
            RecipientId = "1",
            RoutingOrder = "1"
        };

Once the envelope is created as a draft, you can then clean up the signing group:将信封创建为草稿后,您可以清理签名组:

signingGroupsApi.DeleteList(accountId, newGroupInfo);

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

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