2017-05-25 7 views
0

これは、残りのAPIにあります。私たちの実装では、ここで面白いことがあります。エンベロープ内の各ドキュメントの合成テンプレートを作成します。したがって、4つのドキュメントがある場合は、4つの合成テンプレートがあります。封筒に5つの文書があり、それぞれに1つの署名タブがあるとします。受信者が封筒を処理すると、ドキュメントを完全に処理するために各ドキュメントの署名タブで5回クリックする必要があります。封筒に4つの文書がある場合は、署名タブごとに4回になります。それは封筒の文書の数と結びついているようです。これは私たちが望む行動のようには聞こえません。私たちは何が間違っていますか?ここでコンポジットテンプレートを使用すると、複数のドキュメントで不思議な動作が発生する

が送信されるJSONです:、]

"compositeTemplates": [ 
{ 
    "serverTemplates": [ 
    { 
     "sequence": "1", 
     "templateId": "15a22617-4525-438c-aaf1-45f8632ba2d1" 
    } 
    ], 
    "inlineTemplates": [ 
    { 
     "sequence": "1", 
     "recipients": { 
     "signers": [ 
      { 
      "name": "BAT SDTwo", 
      "email": "[email protected]", 
      "recipientId": "6116945", 
      "accessCode": "4792989", 
      "customFields": [], 
      "routingOrder": "1", 
      "note": "", 
      "roleName": "Customer_SellerName", 
      "emailNotification": { 
       "emailSubject": "Please sign the document(s)", 
       "emailBody": "Hello,\r\n\r\nYour consultant has sent you a new document to view and sign. Please click on the View Documents link below, review the content, and sign the Cartus document. If you have any questions, please contact your consultant.\r\n\r\nThank you!", 
       "supportedLanguage": "en" 
      } 
      }, 
      { 
      "name": "SpouseF SpouseL", 
      "email": "[email protected]", 
      "recipientId": "6116946", 
      "accessCode": "4792989", 
      "customFields": [], 
      "routingOrder": "2", 
      "note": "", 
      "roleName": "Spouse_CoOwnerName", 
      "emailNotification": { 
       "emailSubject": "Please sign the document(s)", 
       "emailBody": "Hello,\r\n\r\nYour consultant has sent you a new document to view and sign. Please click on the View Documents link below, review the content, and sign the Cartus document. If you have any questions, please contact your consultant.\r\n\r\nThank you!", 
       "supportedLanguage": "en" 
      } 
      } 
     ], 
     "certifiedDeliveries": [] 
     }, 

     } 
    } 
    ], 
    "document": { 
    "documentId": "1", 
    "name": "e Bookmarks and Tags.pdf", 
    "fileExtension": ".pdf", 

    "documentBase64": "[Document:Base64Array]" 
    } 
}, 
{ 
    "serverTemplates": [ 
    { 
     "sequence": "2", 
     "templateId": "15a22617-4525-438c-aaf1-45f8632ba2d1" 
    } 
    ], 
    "inlineTemplates": [ 
    { 
     "sequence": "2", 
     "recipients": { 
     "signers": [ 
      { 
      "name": "BAT SDTwo", 
      "email": "[email protected]", 
      "recipientId": "6116945", 
      "accessCode": "4792989", 
      "customFields": [], 
      "routingOrder": "1", 
      "note": "", 
      "roleName": "Customer_SellerName", 
      "emailNotification": { 
       "emailSubject": "Please sign the document(s)", 
       "emailBody": "Hello,\r\n\r\nYour consultant has sent you a new document to view and sign. Please click on the View Documents link below, review the content, and sign the Cartus document. If you have any questions, please contact your consultant.\r\n\r\nThank you!", 
       "supportedLanguage": "en" 
      } 
      }, 
      { 
      "name": "SpouseF SpouseL", 
      "email": "[email protected]", 
      "recipientId": "6116946", 
      "accessCode": "4792989", 
      "customFields": [], 
      "routingOrder": "2", 
      "note": "", 
      "roleName": "Spouse_CoOwnerName", 
      "emailNotification": { 
       "emailSubject": "Please sign the document(s)", 
       "emailBody": "Hello,\r\n\r\nYour consultant has sent you a new document to view and sign. Please click on the View Documents link below, review the content, and sign the Cartus document. If you have any questions, please contact your consultant.\r\n\r\nThank you!", 
       "supportedLanguage": "en" 
      } 
      } 
     ], 
     "certifiedDeliveries": [] 
     }, 

    } 
    ], 
    "document": { 
    "documentId": "2", 
    "name": "e Bookmarks and Tags II.pdf", 
    "fileExtension": ".pdf", 

    "documentBase64": "[Document:Base64Array]" 
    } 
}, 
{ 
    "serverTemplates": [ 
    { 
     "sequence": "3", 
     "templateId": "15a22617-4525-438c-aaf1-45f8632ba2d1" 
    } 
    ], 
    "inlineTemplates": [ 
    { 
     "sequence": "3", 
     "recipients": { 
     "signers": [ 
      { 
      "name": "BAT SDTwo", 
      "email": "[email protected]", 
      "recipientId": "6116945", 
      "accessCode": "4792989", 
      "customFields": [], 
      "routingOrder": "1", 
      "note": "", 
      "roleName": "Customer_SellerName", 
      "emailNotification": { 
       "emailSubject": "Please sign the document(s)", 
       "emailBody": "Hello,\r\n\r\nYour consultant has sent you a new document to view and sign. Please click on the View Documents link below, review the content, and sign the Cartus document. If you have any questions, please contact your consultant.\r\n\r\nThank you!", 
       "supportedLanguage": "en" 
      } 
      }, 
      { 
      "name": "SpouseF SpouseL", 
      "email": "[email protected]", 
      "recipientId": "6116946", 
      "accessCode": "4792989", 
      "customFields": [], 
      "routingOrder": "2", 
      "note": "", 
      "roleName": "Spouse_CoOwnerName", 
      "emailNotification": { 
       "emailSubject": "Please sign the document(s)", 
       "emailBody": "Hello,\r\n\r\nYour consultant has sent you a new document to view and sign. Please click on the View Documents link below, review the content, and sign the Cartus document. If you have any questions, please contact your consultant.\r\n\r\nThank you!", 
       "supportedLanguage": "en" 
      } 
      } 
     ], 
     "certifiedDeliveries": [] 
     }, 

    } 
    ], 
    "document": { 
    "documentId": "3", 
    "name": "e Bookmarks and Tags Embedded.pdf", 
    "fileExtension": ".pdf", 

    "documentBase64": "[Document:Base64Array]" 
    } 
}, 
{ 
    "serverTemplates": [ 
    { 
     "sequence": "4", 
     "templateId": "15a22617-4525-438c-aaf1-45f8632ba2d1" 
    } 
    ], 
    "inlineTemplates": [ 
    { 
     "sequence": "4", 
     "recipients": { 
     "signers": [ 
      { 
      "name": "BAT SDTwo", 
      "email": "[email protected]", 
      "recipientId": "6116945", 
      "accessCode": "4792989", 
      "customFields": [], 
      "routingOrder": "1", 
      "note": "", 
      "roleName": "Customer_SellerName", 
      "emailNotification": { 
       "emailSubject": "Please sign the document(s)", 
       "emailBody": "Hello,\r\n\r\nYour consultant has sent you a new document to view and sign. Please click on the View Documents link below, review the content, and sign the Cartus document. If you have any questions, please contact your consultant.\r\n\r\nThank you!", 
       "supportedLanguage": "en" 
      } 
      }, 
      { 
      "name": "SpouseF SpouseL", 
      "email": "[email protected]", 
      "recipientId": "6116946", 
      "accessCode": "4792989", 
      "customFields": [], 
      "routingOrder": "2", 
      "note": "", 
      "roleName": "Spouse_CoOwnerName", 
      "emailNotification": { 
       "emailSubject": "Please sign the document(s)", 
       "emailBody": "Hello,\r\n\r\nYour consultant has sent you a new document to view and sign. Please click on the View Documents link below, review the content, and sign the Cartus document. If you have any questions, please contact your consultant.\r\n\r\nThank you!", 
       "supportedLanguage": "en" 
      } 
      } 
     ], 
     "certifiedDeliveries": [] 
     }, 

    } 
    ], 
    "document": { 
    "documentId": "4", 
    "name": "e Static.pdf", 
    "fileExtension": ".pdf", 

    "documentBase64": "[Document:Base64Array]" 
    } 
}, 
{ 
    "serverTemplates": [ 
    { 
     "sequence": "5", 
     "templateId": "15a22617-4525-438c-aaf1-45f8632ba2d1" 
    } 
    ], 
    "inlineTemplates": [ 
    { 
     "sequence": "5", 
     "recipients": { 
     "signers": [ 
      { 
      "name": "BAT SDTwo", 
      "email": "[email protected]", 
      "recipientId": "6116945", 
      "accessCode": "4792989", 
      "customFields": [], 
      "routingOrder": "1", 
      "note": "", 
      "roleName": "Customer_SellerName", 
      "emailNotification": { 
       "emailSubject": "Please sign the document(s)", 
       "emailBody": "Hello,\r\n\r\nYour consultant has sent you a new document to view and sign. Please click on the View Documents link below, review the content, and sign the Cartus document. If you have any questions, please contact your consultant.\r\n\r\nThank you!", 
       "supportedLanguage": "en" 
      } 
      }, 
      { 
      "name": "SpouseF SpouseL", 
      "email": "[email protected]", 
      "recipientId": "6116946", 
      "accessCode": "4792989", 
      "customFields": [], 
      "routingOrder": "2", 
      "note": "", 
      "roleName": "Spouse_CoOwnerName", 
      "emailNotification": { 
       "emailSubject": "Please sign the document(s)", 
       "emailBody": "Hello,\r\n\r\nYour consultant has sent you a new document to view and sign. Please click on the View Documents link below, review the content, and sign the Cartus document. If you have any questions, please contact your consultant.\r\n\r\nThank you!", 
       "supportedLanguage": "en" 
      } 
      } 
     ], 
     "certifiedDeliveries": [] 
     }, 

    } 
    ], 
    "document": { 
    "documentId": "5", 
    "name": "e Static II.pdf", 
    "fileExtension": ".pdf", 

    "documentBase64": "[Document:Base64Array]" 
    } 
}, 
{ 
    "serverTemplates": [ 
    { 
     "sequence": "6", 
     "templateId": "15a22617-4525-438c-aaf1-45f8632ba2d1" 
    } 
    ], 
    "inlineTemplates": [ 
    { 
     "sequence": "6", 
     "recipients": { 
     "signers": [ 
      { 
      "name": "BAT SDTwo", 
      "email": "[email protected]", 
      "recipientId": "6116945", 
      "accessCode": "4792989", 
      "customFields": [], 
      "routingOrder": "1", 
      "note": "", 
      "roleName": "Customer_SellerName", 
      "emailNotification": { 
       "emailSubject": "Please sign the document(s)", 
       "emailBody": "Hello,\r\n\r\nYour consultant has sent you a new document to view and sign. Please click on the View Documents link below, review the content, and sign the Cartus document. If you have any questions, please contact your consultant.\r\n\r\nThank you!", 
       "supportedLanguage": "en" 
      } 
      }, 
      { 
      "name": "SpouseF SpouseL", 
      "email": "[email protected]", 
      "recipientId": "6116946", 
      "accessCode": "4792989", 
      "customFields": [], 
      "routingOrder": "2", 
      "note": "", 
      "roleName": "Spouse_CoOwnerName", 
      "emailNotification": { 
       "emailSubject": "Please sign the document(s)", 
       "emailBody": "Hello,\r\n\r\nYour consultant has sent you a new document to view and sign. Please click on the View Documents link below, review the content, and sign the Cartus document. If you have any questions, please contact your consultant.\r\n\r\nThank you!", 
       "supportedLanguage": "en" 
      } 
      } 
     ], 
     "certifiedDeliveries": [] 
     }, 

    } 
    ], 
    "document": { 
    "documentId": "6", 
    "name": "e Static Embedded.pdf", 
    "fileExtension": ".pdf", 

    "documentBase64": "[Document:Base64Array]" 
    } 
} 

+0

JSONをリクエストしてください。 –

+0

私たちはまだラッパで非常に簡単なアプローチを取っていました。なぜなら、テンプレートについて学んでいて、私たちが必要としていたことを達成する方法を知っていたからです。また、複合テンプレートごとに1つの文書しか持てないという誤った前提のもとに行きました。私たちの封筒の大部分については、おそらく8または10個の文書、場合によってはこれらのすべての文書用のテンプレートが1個しかないでしょう。 –

答えて

2

使用しているサーバーテンプレートは、アンカータブがあります。これは、既存のタブの上に重複したタブを作成しています。 [アンカー]タブの範囲は封筒レベルです。したがって、5つの複合テンプレートを指定する場合は、各テンプレートのアンカータブが封筒全体に適用されます。

署名式中に、5つの異なる署名タブをクリックしている可能性がありますが、同じタブを5回クリックする必要があると考えます。

アンカータブの代わりに固定配置タブを使用してみてください。これは、重複したタブの問題を解決します。

+0

私はAnchorタブを使用することを約束します。少なくとも私はその行動が今何かを知っています。 –

関連する問題