简体   繁体   English

列出从 DocuSign 中的模板创建的所有信封

[英]List all the envelopes created from a template in DocuSign

I'm trying to get the list of all the envelopes created from a specific template in java.我正在尝试获取从 java 中的特定模板创建的所有信封的列表。

EnvelopeTemplateResults envTempResults = templatesApi.listTemplates(accountId);信封模板结果 envTempResults = templatesApi.listTemplates(accountId);

I can get the list of all the templates in the account by iterating through envTempResults and calling the method getTemplateId().我可以通过遍历 envTempResults 并调用方法 getTemplateId() 来获取帐户中所有模板的列表。 Is there a way for me to get the envelopes created from these templates?有没有办法让我获得从这些模板创建的信封?

Alternatively, is there a way to get all the bulk envelopes sent out (specifically I want to get all the Batch IDs) or a list of all the envelopes in the account?或者,有没有办法让所有的散装信封发出(特别是我想获得所有批次 ID)或帐户中所有信封的列表?

An envelope and a template are the same thing conceptually, they are both a set of documents, recipients and fields.信封和模板在概念上是一样的,它们都是一组文档、收件人和字段。

The only difference is that you take a template and use it as a "boilerplate", which basically means you duplicate/copy the template into an envelope.唯一的区别是您使用模板并将其用作“样板”,这基本上意味着您将模板复制/复制到信封中。

From that point on the envelope lives in the system independently, and there's no direct means to track what template was used to create it.从那时起,信封独立存在于系统中,并且没有直接的方法来跟踪使用什么模板创建它。

The solution that most customers/developers found is to use unique values or characteristics of the template/envelope to find out.大多数客户/开发人员找到的解决方案是使用模板/信封的唯一值或特征来查找。 It can be anything, from the type/number of recipients or documents, to the location of tags etc.它可以是任何东西,从收件人或文档的类型/数量,到标签的位置等。

The best way to do it is by using metatdata, or custom fields.最好的方法是使用元数据或自定义字段。 These are copied (just like everything else is copied) and you can add one called "templateName" which will always have the templateName in it and then you can use that to find the list of envelopes created from this template.这些被复制(就像复制其他所有东西一样),您可以添加一个名为“templateName”的模板,它始终包含模板名称,然后您可以使用它来查找从该模板创建的信封列表。

https://www.docusign.com/blog/developers/the-trenches-track-your-templates-envelope-custom-fields Shows you how to do that. https://www.docusign.com/blog/developers/the-trenches-track-your-templates-envelope-custom-fields向您展示如何做到这一点。

However, if you want to do this, it will only work for envelopes created from that point onwards.但是,如果您想这样做,它仅适用于从那时起创建的封套。 It will not be possible to search for envelopes created from the templates before you added the custom fields to them.在向模板添加自定义字段之前,将无法搜索从模板创建的信封。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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