2017-05-25 23 views
0

這與Rest api有關。我們在實施過程中看到了一些有趣的內容。我爲信封中的每個文檔創建了一個複合模板,因此如果有4個文檔,則會有4個複合模板。假設我的信封中有5個文檔,每個文檔都有一個簽名選項卡。我們所看到的是,當收件人處理信封時,他們需要在每個文檔的簽名選項卡上單擊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

我對包裝器採取了非常直接的方法,因爲我們仍然在學習模板以及如何完成我們需要做的事情。我也誤以爲每個複合模板只能有一個文檔。對於我們大多數的信封,我們可能會有8或10個文檔,並且可能只有1個模板適用於所有這些文檔。 –

回答

2

的服務器模板使用的是具有固定突起。這是在已有標籤上創建重複標籤。 Anchor選項卡的範圍處於信封級別,因此如果您指定了5個複合模板,則每個模板中的錨定選項卡將應用於整個信封。

在簽字儀式中,您可能會點擊5個不同的簽名標籤,但是他們認爲必須單擊相同的標籤5次。

嘗試使用固定定位選項卡代替Anchor選項卡。這將解決重複的標籤問題。

+0

恐怕我們承諾使用Anchor選項卡。至少我知道現在的行爲是什麼。 –