如何使用 apex 工具包将签名组添加为收件人

发布于 2025-01-16 20:33:13 字数 43 浏览 4 评论 0原文

发送信封时是否可以使用 apex toolkit 添加签名组作为收件人?

Is it possible to add a signing group as the recipient with apex toolkit when sending an envelope?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

何以笙箫默 2025-01-23 20:33:13

以下是使用 Apex 发送到签名组的方法

dfsle.SigningGroup testSigningGroup = new dfsle.SigningGroup(123456, 'Test'); // ID and Name should match the DocuSign Signing group name and ID

    dfsle.Recipient myRecipient = new dfsle.Recipient(
        null, //Source Id
        'Signer',//Type of recipient
        1, //Sequence
        1, //routing order
        new dfsle.Recipient.Role('Signer 1',null), //role -used to match role
        //on template if using a template
        null, //inPerson Recipient name
        null, //inPerson Recipient Email
        testSigningGroup, //signing group
        null, //phone
        null,//no Authentication
        null, //note
        null, //EmailSettings
        null, //host name This is the name of the host for InPerson
        null, //host email email of host
        true, //sign now
        null, //source
        false, //read only
        false //required
    );

然后您可以使用以下命令将其添加到信封中

dfsle.Envelope myEnvelope = dfsle.EnvelopeService.getEmptyEnvelope(
        new dfsle.Entity(mySourceId)) // The initiating Salesforce entity--current SF user (salesperson)
        .withDocuments(new List<dfsle.Document> { 
            dfsle.Document.fromTemplate(myTemplateId, DESCRIPTION) 
        })
        .withRecipients(new List<dfsle.Recipient> { myRecipient }
    );

Here's how you send to a signing group using Apex

dfsle.SigningGroup testSigningGroup = new dfsle.SigningGroup(123456, 'Test'); // ID and Name should match the DocuSign Signing group name and ID

    dfsle.Recipient myRecipient = new dfsle.Recipient(
        null, //Source Id
        'Signer',//Type of recipient
        1, //Sequence
        1, //routing order
        new dfsle.Recipient.Role('Signer 1',null), //role -used to match role
        //on template if using a template
        null, //inPerson Recipient name
        null, //inPerson Recipient Email
        testSigningGroup, //signing group
        null, //phone
        null,//no Authentication
        null, //note
        null, //EmailSettings
        null, //host name This is the name of the host for InPerson
        null, //host email email of host
        true, //sign now
        null, //source
        false, //read only
        false //required
    );

And then you can add it to your envelope using

dfsle.Envelope myEnvelope = dfsle.EnvelopeService.getEmptyEnvelope(
        new dfsle.Entity(mySourceId)) // The initiating Salesforce entity--current SF user (salesperson)
        .withDocuments(new List<dfsle.Document> { 
            dfsle.Document.fromTemplate(myTemplateId, DESCRIPTION) 
        })
        .withRecipients(new List<dfsle.Recipient> { myRecipient }
    );
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文