How do I change phone numbers when using templates to generate envelopes
shengbid opened this issue · 7 comments
shengbid commented
InbarGazit commented
See https://developers.docusign.com/docs/esign-rest-api/how-to/phone-auth/
The node code for a recipient is like this:
let signer1 = docusign.Signer.constructFromObject({
email: args.signerEmail,
name: args.signerName,
recipientId: "1",
routingOrder: "1",
deliveryMethod: "Email",
tabs: signer1Tabs,
identityVerification: { workflowId: args.workflowId, steps: null, "inputOptions":[{"name":"phone_number_list","valueType":"PhoneNumberList","phoneNumberList":[{"countryCode":args.countryCode,"code":"1","number":args.phoneNumber}]}], "idCheckConfigurationName":""}
InbarGazit commented
Just replace the Signer object with a TemplateRole object, but the rest should be the same.
shengbid commented
How do I get signer1Tabs content? I want to generate the envelope with the defined template
shengbid commented
How do I get signer1Tabs content? I want to generate the envelope with the defined template
…------------------ 原始邮件 ------------------
发件人: "docusign/code-examples-node" ***@***.***>;
发送时间: 2022年6月16日(星期四) 上午10:37
***@***.***>;
***@***.******@***.***>;
主题: Re: [docusign/code-examples-node] How do I change phone numbers when using templates to generate envelopes (Issue #40)
Just replace the Signer object with a TemplateRole object, but the rest should be the same.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
shengbid commented
InbarGazit commented
The last error occurs because you're using a templateId which requires templateRole so you cannot specify recipients too.
I would recommend using the composite template model that allow the most flexibility.
InbarGazit commented
Let us know if you still need help on this


