0

我想在复合模板文档(在运行时上传的文档)中包含来自服务器模板和内联模板的锚选项卡。服务器模板包含一个角色为 Signer1 的收件人。内联模板包含具有 Signer2 角色的不同收件人。以下是完整的请求 xml。如果需要,我可以包含服务器模板 json。我已阅读以下文档:Send an Envelope from a TemplateDev Center Templates DocRules 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)中的收件人收到包含服务器模板选项卡的信封,并且内联模板中的收件人收到包含内联模板选项卡的信封。

好消息是服务器模板中的收件人确实收到了一个信封,其中包含服务器模板中指定的选项卡。

问题是内联模板中的收件人收到的信封没有任何标签。我无法弄清楚为什么内联模板中的选项卡被忽略了。我在服务器和内联模板中使用了锚字符串来指定复合模板文档中放置选项卡的位置。

4

1 回答 1

0

您可以从服务器模板或内联模板将文档添加到信封中。如果您从 InlineTemplate 添加文档,那么您应该使用锚字符串定义选项卡,并且所有选项卡将仅使用 InlineTemplate 创建。您不能混合使用两种策略,即从服务器模板添加几个选项卡和从内联模板添加几个选项卡(使用锚字符串)。如果您在服务器和内联模板中都有相同的文档,然后使用 InlineTemplate 创建信封并使用锚字符串创建收件人选项卡,我无法理解为什么您将来自服务器的一个收件人和另一个来自内联模板的收件人混合在一起。

于 2017-12-12T18:45:30.097 回答