简体   繁体   中英

Create Docusign envelope from template json file

I'm trying to find a way to use the docusign template creator to easily create complex documents and then download the json template file to use it on our c# application.

The reason for this is to minimize management of templates on the docusign website and just send the already created json template on the fly.

Their documentation shows that you can do either call template or generate on the fly by hardcoding the envelope.

Can the JSON file be reused to create dynamic documents?

Just for anyone that might want to do this in the future...

All I did was download the template json file from docusign and just deserialized it to an Envelope Definition.

var definition = JsonConvert.DeserializeObject<EnvelopeDefinition>(new StreamReader(path).ReadToEnd());

This gives you complete access to the envelope with the json information and you can edit and send. I updated the TempltaeId to string.Empty to make sure it's not using templates on the docusign website.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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