如何在信封中包含来自内联模板和复合模板的锚点标签?
How do I include anchor tabs from both Inline and Composite Templates in an Envelope?
我想在复合模板文档(运行时上传的文档)中包含来自服务器模板和内联模板的锚点选项卡。服务器模板包含一个角色为 Signer1 的收件人。内联模板包含一个角色为 Signer2 的不同收件人。以下是完整的请求 xml。如果需要,我可以包含服务器模板 json。我已阅读以下文档:Send an Envelope from a Template, Dev Center Templates Doc, and Rules for CompositeTemplate Usage。
<envelopeDefinition>
<status>sent</status>
<emailSubject>Please sign this document</emailSubject>
<emailBlurb></emailBlurb>
<compositeTemplates>
<compositeTemplate>
<inlineTemplates>
<inlineTemplate>
<recipients>
<agents />
<carbonCopies />
<certifiedDeliveries />
<editors />
<inPersonSigners />
<intermediaries />
<signers>
<signer>
<recipientId>1</recipientId>
<name>My name</name>
<email>My email address</email>
<routingOrder></routingOrder>
<roleName>Signer2</roleName>
<tabs>
<approveTabs>
<approve>
<anchorString>A string in the runtime doc</anchorString>
<anchorUnits>Pixels</anchorUnits>
<anchorXOffset>0</anchorXOffset>
<anchorYOffset>0</anchorYOffset>
</approve>
</approveTabs>
<companyTabs />
<dateSignedTabs />
<declineTabs />
<emailAddressTabs />
<envelopeIdTabs />
<firstNameTabs />
<fullNameTabs />
<initialHereTabs>
<initialHere>
<anchorString>A string in the runtime doc</anchorString>
<anchorUnits>Pixels</anchorUnits>
<anchorXOffset>0</anchorXOffset>
<anchorYOffset>0</anchorYOffset>
</initialHere>
</initialHereTabs>
<lastNameTabs />
<signerAttachmentTabs />
<signHereTabs />
<titleTabs />
</tabs>
</signer>
</signers>
</recipients>
<sequence>2</sequence>
</inlineTemplate>
</inlineTemplates>
<document>
<documentId>My runtime doc id</documentId>
<name>My runtime doc name</name>
<documentBase64>PDF bytes</documentBase64>
</document>
<serverTemplates>
<serverTemplate>
<sequence>1</sequence>
<templateId>My server template id</templateId>
</serverTemplate>
</serverTemplates>
</compositeTemplate>
</compositeTemplates>
</envelopeDefinition>
我希望服务器模板中的收件人 (Signer1) 收到包含服务器模板选项卡的信封,内联模板中的收件人收到包含内联模板选项卡的信封。
好消息是服务器模板中的收件人确实收到了一个带有服务器模板中指定的标签的信封。
问题是内联模板中的收件人收到了一个没有任何标签的信封。我不明白为什么内联模板中的选项卡被忽略了。我在服务器和内联模板中使用了锚字符串来指定复合模板文档中放置选项卡的位置。
您可以通过服务器模板或内联模板将文档添加到信封中。如果您从 InlineTemplate 添加文档,那么您应该使用锚字符串定义选项卡,并且所有选项卡都将仅使用 InlineTemplate 创建。您不能混合使用两种策略,即从服务器模板添加几个选项卡和从内联模板添加几个选项卡(使用锚字符串)。如果您在服务器和内联模板中都有相同的文档,然后使用 InlineTemplate 创建信封并使用锚字符串创建收件人选项卡,我无法理解为什么您混合使用来自服务器的一个收件人和来自内联模板的另一个收件人。
我想在复合模板文档(运行时上传的文档)中包含来自服务器模板和内联模板的锚点选项卡。服务器模板包含一个角色为 Signer1 的收件人。内联模板包含一个角色为 Signer2 的不同收件人。以下是完整的请求 xml。如果需要,我可以包含服务器模板 json。我已阅读以下文档:Send an Envelope from a Template, Dev Center Templates Doc, and Rules for CompositeTemplate Usage。
<envelopeDefinition>
<status>sent</status>
<emailSubject>Please sign this document</emailSubject>
<emailBlurb></emailBlurb>
<compositeTemplates>
<compositeTemplate>
<inlineTemplates>
<inlineTemplate>
<recipients>
<agents />
<carbonCopies />
<certifiedDeliveries />
<editors />
<inPersonSigners />
<intermediaries />
<signers>
<signer>
<recipientId>1</recipientId>
<name>My name</name>
<email>My email address</email>
<routingOrder></routingOrder>
<roleName>Signer2</roleName>
<tabs>
<approveTabs>
<approve>
<anchorString>A string in the runtime doc</anchorString>
<anchorUnits>Pixels</anchorUnits>
<anchorXOffset>0</anchorXOffset>
<anchorYOffset>0</anchorYOffset>
</approve>
</approveTabs>
<companyTabs />
<dateSignedTabs />
<declineTabs />
<emailAddressTabs />
<envelopeIdTabs />
<firstNameTabs />
<fullNameTabs />
<initialHereTabs>
<initialHere>
<anchorString>A string in the runtime doc</anchorString>
<anchorUnits>Pixels</anchorUnits>
<anchorXOffset>0</anchorXOffset>
<anchorYOffset>0</anchorYOffset>
</initialHere>
</initialHereTabs>
<lastNameTabs />
<signerAttachmentTabs />
<signHereTabs />
<titleTabs />
</tabs>
</signer>
</signers>
</recipients>
<sequence>2</sequence>
</inlineTemplate>
</inlineTemplates>
<document>
<documentId>My runtime doc id</documentId>
<name>My runtime doc name</name>
<documentBase64>PDF bytes</documentBase64>
</document>
<serverTemplates>
<serverTemplate>
<sequence>1</sequence>
<templateId>My server template id</templateId>
</serverTemplate>
</serverTemplates>
</compositeTemplate>
</compositeTemplates>
</envelopeDefinition>
我希望服务器模板中的收件人 (Signer1) 收到包含服务器模板选项卡的信封,内联模板中的收件人收到包含内联模板选项卡的信封。
好消息是服务器模板中的收件人确实收到了一个带有服务器模板中指定的标签的信封。
问题是内联模板中的收件人收到了一个没有任何标签的信封。我不明白为什么内联模板中的选项卡被忽略了。我在服务器和内联模板中使用了锚字符串来指定复合模板文档中放置选项卡的位置。
您可以通过服务器模板或内联模板将文档添加到信封中。如果您从 InlineTemplate 添加文档,那么您应该使用锚字符串定义选项卡,并且所有选项卡都将仅使用 InlineTemplate 创建。您不能混合使用两种策略,即从服务器模板添加几个选项卡和从内联模板添加几个选项卡(使用锚字符串)。如果您在服务器和内联模板中都有相同的文档,然后使用 InlineTemplate 创建信封并使用锚字符串创建收件人选项卡,我无法理解为什么您混合使用来自服务器的一个收件人和来自内联模板的另一个收件人。