发送信封-替换多个模板文档



我有一个关于以下场景的问题。

我有一个包含2个文档的Docusign模板。模板包含两个模板角色,文档上几乎没有应用签名标记。也可以有文本输入标签,复选框标签等…

我需要的是发送一个包含文档的信封,这些文档将替换两个模板文档,但要应用在模板中配置的DocuSign标记(签名、复选框..(,应用文档可见性,以及尽可能多的DS模板功能。

签名请求(信封(使用DocuSign.eSign C#客户端库发送。我使用以下代码构建复合模板,该模板包含两个新文档,它们具有从DocuSign模板检索到的适当的documentID。

EnvelopeDefinition envDef = new EnvelopeDefinition();
envDef.EmailSubject = "Subject";
envDef.EmailBlurb = "Body";
envDef.CompositeTemplates = new List<CompositeTemplate>();
envDef.CompositeTemplates.Add(new CompositeTemplate
{
ServerTemplates = new List<ServerTemplate> {
new ServerTemplate
{
Sequence = "2",
TemplateId = "TEMPLATE_ID_GOES_HERE"
}
},
InlineTemplates = new List<InlineTemplate>
{
new InlineTemplate
{
Sequence = "1",
Documents = new List<DocuSign.eSign.Model.Document>
{
new Document
{
DocumentBase64 = "...",    //document content
Name ="some.pdf",             
DocumentId = "TEMPLATE_DOC1_ID_GOES_HERE" //ID of template document that should be replaced
},
new Document
{
DocumentBase64 = "...",  //document content
Name ="another.pdf",
DocumentId = "TEMPLATE_DOC2_ID_GOES_HERE" //ID of template document that should to be replaced
}
}
}
} 
});

信封已成功发送,签名者可以看到这两个新文档,但模板中(在Docusign Web UI上(没有配置标签,我希望避免从客户端发送收件人标签。

我是不是错过了什么?

谢谢。

更改排序顺序,使新文档首先列出。

对于复合模板,顺序很重要。对于文档,使用早期的文档。--因此,您的新文档应该在服务器模板(及其文档(之前。

对于其他一切,后面的信息都会胜出。

请参阅以下答案:https://stackoverflow.com/a/44376770/64904

转念一想,我看到你在做这件事,除了选项卡没有应用到新文档之外,一切都正常。

尝试merge_roles_on_draft查询参数。此外,如果使用锚定选项卡,请将applyAnchorTabs: 'true'元素添加到document对象中。

最新更新