想知道我缺少什麼或做錯了,因爲創建信封時沒有設置選項卡的值。沒有使用rest api設置texttabs創建信封
在JSON代碼下面我想當我看到這裏的信封標籤爲默認值的文本標籤收件人5.
{
"emailSubject":"Allowance Agreement - AK Anne Klein Footwear - ytd .doc",
"emailBlurb":"DEV - Please complete the Vendor Allowance Agreement required for your Supplier setup with Zappos.com or 6pm.com. \n\n Please reach out to your Vendor Support team member or [email protected] with any questions.",
"status":"sent",
"compositeTemplates":[
{
"compositeTemplateId": "1",
"inlineTemplates":[
{
"sequence":"1",
"documents": [
{
"documentId": "1",
"name": "Allowance Agreement - AK Anne Klein Footwear - ytd .doc.doc"
}
],
"customFields": {
"textCustomFields": [
{
"name": "Node ID",
"required": "true",
"show": "true",
"value": "658824"
}
]
},
"recipients":{
"signers":[
{
"email":"[email protected]",
"name":"v",
"recipientId":1,
"roleName":"Vendor"
},
{
"email":"[email protected]",
"name":"test",
"recipientId":2,
"roleName":"Vendor Support"
},
{
"email":"[email protected]",
"name":"ap",
"recipientId":3,
"roleName":"AP"
},
{
"email":"[email protected]",
"name":"f",
"recipientId":4,
"roleName":"Finance"
},
{
"email":"[email protected]",
"name":"ap",
"recipientId":5,
"roleName":"AP2",
"tabs":{
"textTabs":[
{
"tabLabel":"txtVendorId",
"value":"100023"
},
{
"tabLabel":"txtSupplierName",
"value":"AK Anne Klein Footwear"
},
{
"tabLabel":"txtSupplierId",
"value":"253"
}
]
}}
]
}
}
],
"serverTemplates":[
{
"sequence":"2",
"templateId":"A3B4F6BB-639A-486F-8C84-826295142F21"
}
]
}
]
}
是我得到的第5收件人:
"textTabs": [
{
"height": 22,
"isPaymentAmount": "false",
"validationPattern": "",
"shared": "false",
"requireInitialOnSharedChange": "false",
"requireAll": "false",
"name": "Text",
"value": "",
"width": 300,
"required": "true",
"locked": "false",
"concealValueOnDocument": "false",
"disableAutoSize": "false",
"tabLabel": "txtVendorId",
"font": "lucidaconsole",
"fontColor": "black",
"fontSize": "size9",
"documentId": "1",
"recipientId": "5",
"pageNumber": "2",
"xPosition": "217",
"yPosition": "651",
"tabId": "2179efb5-9f59-4bb7-895e-da868fba9919"
},
{
"height": 22,
"isPaymentAmount": "false",
"validationPattern": "",
"shared": "false",
"requireInitialOnSharedChange": "false",
"requireAll": "false",
"name": "Text",
"value": "",
"width": 342,
"required": "true",
"locked": "false",
"concealValueOnDocument": "false",
"disableAutoSize": "false",
"tabLabel": "txtSupplierName",
"font": "lucidaconsole",
"fontColor": "black",
"fontSize": "size9",
"documentId": "1",
"recipientId": "5",
"pageNumber": "2",
"xPosition": "172",
"yPosition": "670",
"tabId": "2c6e59b1-6a4f-4f5f-a873-33398c78e408"
},
{
"height": 22,
"isPaymentAmount": "false",
"validationPattern": "",
"shared": "false",
"requireInitialOnSharedChange": "false",
"requireAll": "false",
"name": "Text",
"value": "",
"width": 354,
"required": "true",
"locked": "false",
"concealValueOnDocument": "false",
"disableAutoSize": "false",
"tabLabel": "txtSupplierId",
"font": "lucidaconsole",
"fontColor": "black",
"fontSize": "size9",
"documentId": "1",
"recipientId": "5",
"pageNumber": "2",
"xPosition": "172",
"yPosition": "690",
"tabId": "614eb20b-5536-45db-b64a-84a475cdc44d"
}
]
*編輯* 將信封標籤和接收方,一個標籤的屏幕捕獲的最後一部分...
},
"isBulkRecipient": "false",
"name": "ap",
"email": "[email protected]",
"recipientId": "5",
"recipientIdGuid": "77e255d8-a6d6-47a8-98ee-0f3829631d76",
"requireIdLookup": "false",
"userId": "8d7f443b-7adf-4cfa-8368-296aee88e959",
"routingOrder": "5",
"roleName": "AP2",
"status": "created",
"totalTabCount": "5"
}
*解決方法*
由於我沒有能夠設置在創建時的標籤值,我試過如下:
試過創建一個PUT請求來更新使用uri作爲recipie選項卡的選項卡nt/enveloid/recipients/5/tabs並將文本標籤的JSON傳遞爲。
{ 「textTabs」:[ { 「tabLabel」: 「txtVendorId」, 「值」: 「123」 } ] }
跑過JSON上述我會得到該標籤未在信封
{
"requireAll": "false",
"concealValueOnDocument": "false",
"disableAutoSize": "false",
"recipientId": "5",
"tabId": "00000000-0000-0000-0000-000000000000",
"errorDetails": {
"errorCode": "INVALID_TAB_OPERATION",
"message": "The Tab specified is not valid for the requested operation. The Tab specified is not valid for the requested operation. Tab not found in envelope."
}
- 我的第二步驟是噸發現的響應o實際上從創建的信封中獲取tabId值,而不是使用tab標籤(在創建信封之前我不會擁有的東西)。
- 創建信封
- 獲取收件人標籤(以獲得標籤的ID值)
- 使用標籤ID更新標籤值。
通過調用/ envelopeid /收件人/ 5 /在JSON與tabId標籤,而不是像
{
"textTabs":[
{
"tabId": "57135910-fe34-417d-a4e3-fc7d6c4a42ed",
"value":"123"
}
]
}
則字段值得到正確更新。
總之,我的解決方法將需要三個調用的DocuSign能夠爲此收件人設置默認值:
哪裏的標籤存在,你」重新分配值?在服務器模板'A3B4F6BB-639A-486F-8C84-826295142F21'? – Andrew
是的,他們在模板中。我想要做的是將模板分配給文檔,然後爲其中一個用戶設置一些值。 –
@AndrewWilson Andrew,由於選項卡在模板中,我需要在不同的位置分配嗎? –