0

我对以下情况有疑问。

我有一个包含 2 个文档的 Docusign 模板。模板包含两个模板角色,在文档上应用了很少的签名标签。还可能有文本输入标签、复选框标签等......

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

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

 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 上),我想避免从客户端发送收件人选项卡。

我错过了什么吗?

谢谢。

4

1 回答 1

0

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

使用复合模板,订单很重要。对于文档,使用较早的文档。-- 所以你的新文件应该在服务器模板(及其文件)之前。

对于其他一切,后来的信息获胜。

看到这个答案:https ://stackoverflow.com/a/44376770/64904

再想一想,我看到你正在这样做,除了选项卡没有应用于新文档之外,它一切正常。

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

于 2018-11-25T20:50:30.950 回答