docusign / docusign-esign-csharp-client

The Official Docusign C# Client Library used to interact with the eSignature REST API. Send, sign, and approve documents using this client.
https://developers.docusign.com/docs/esign-rest-api/sdks/csharp/
MIT License
129 stars 159 forks source link

ENVELOPE_CUSTOM_FIELD_MISSING after Client Update #386

Closed insanity13 closed 2 years ago

insanity13 commented 2 years ago

We have template with Custom field with empty "Required for Sending" option. image

In DocuSign.eSign.dll" version="3.0.1" it worked well

After update to 5.12.0 we got: 'Error calling CreateEnvelope: {"errorCode":"ENVELOPE_CUSTOM_FIELD_MISSING","message":"A required envelope custom field is missing. The custom field 'Vault With eOriginal' requires a value."}'

If this field set to "False" it worked image

We have a lot of such templates, is it a way to change default behaviour?

p.s. yes it is required in global settings image

sylvainleb376 commented 2 years ago

In fact if this envelope custom field has the property Required=true, then it's mandatory to have a value attributed to this field when an envelope is sent. A solution is to pre-define a value directly in the template as you did. Or to attribute a value during the envelope creation. See an example in this blog: https://www.docusign.com/blog/developers/the-trenches-track-your-templates-envelope-custom-fields

insanity13 commented 2 years ago

Thanks