-->

Remove templaterole from envelope

2019-09-04 10:04发布

问题:

I have a template with a Signer and a CarbonCopy role. I create envelopes from the template. Sometimes I don't have a CC email to use for the CC templaterole. If I leave it blank, or if I don't provide the corresponding xml, (in both cases) I get an INVALID EMAIL ADDRESS error. The role is not set to be required, so I don't understand why this error occurs. Is there any way to remove the templaterole from the envelope to prevent this ?

回答1:

Figured this out. My resolution:

Have only the signer role in the template.

After the call to create envelope (status created), do a GET on recipients

Parse/capture/store the contents of the signers tag

Build xml for the entire recipients tag, inclusive of the contents of the signers tag and all the carbonCopy tags that you want

POST to recipients



标签: docusignapi