DocuSign API - 我有一个包含多个dataFields的表单。除了一个字段外,所有字段都填充。该字段的名称是tabCollege1。这是我的要求
{
"templateId": "A8A8543D-0514-48CB-9BEE-ACBADE418CA3",
"templateRoles": [
{
"tabs": {
"textTabs": [
{
"tabLabel": "tabLastName",
"value": "Adams",
"pageNumber": "1",
"documentId": "1"
},
{
"tabLabel": "tabFirstName",
"value": "X",
"pageNumber": "1",
"documentId": "1"
},
{
"tabLabel": "tabSSN",
"value": "888888888",
"pageNumber": "1",
"documentId": "1"
},
{
"tabLabel": "tabAddressLine1",
"value": "123 any st",
"pageNumber": "1",
"documentId": "1"
},
{
"tabLabel": "tabApartment",
"value": "",
"pageNumber": "1",
"documentId": "1"
},
{
"tabLabel": "tabHomePhone",
"value": "(502) 999-9999",
"pageNumber": "1",
"documentId": "1"
},
{
"tabLabel": "tabCellPhone",
"value": "(502) 999-9999",
"pageNumber": "1",
"documentId": "1"
},
{
"tabLabel": "tabCity",
"value": "Louisville",
"pageNumber": "1",
"documentId": "1"
},
{
"tabLabel": "tabState",
"value": "KY",
"pageNumber": "1",
"documentId": "1"
},
{
"tabLabel": "tabZip",
"value": "40214",
"pageNumber": "1",
"documentId": "1"
},
{
"tabLabel": "tabEmergencyPhone",
"value": "(___) ___-____",
"pageNumber": "1",
"documentId": "1"
},
{
"tabLabel": "tabDOB",
"value": "9/26/1985 12:00:00 AM",
"pageNumber": "1",
"documentId": "1"
},
{
"tabLabel": "tabEmail",
"value": "X.adams@myata.edu",
"pageNumber": "1",
"documentId": "1"
},
{
"tabLabel": "tabCompletionCredential",
"value": "Associates Degree",
"pageNumber": "1",
"documentId": "1"
},
{
"tabLabel": "tabProgramName",
"value": "Medical Assisting",
"pageNumber": "1",
"documentId": "1"
},
{
"tabLabel": "tabCreditHours",
"value": "90.00",
"pageNumber": "1",
"documentId": "1"
},
{
"tabLabel": "tabStartDate",
"value": "1/6/2014 12:00:00 AM",
"pageNumber": "1",
"documentId": "1"
},
{
"tabLabel": "tabGradDate",
"value": "5/23/2015 12:00:00 AM",
"pageNumber": "1",
"documentId": "1"
},
{
"tabLabel": "tabNumWeeks",
"value": "70",
"pageNumber": "1",
"documentId": "1"
},
{
"tabLabel": "tabAppFees",
"value": "25.00",
"pageNumber": "1",
"documentId": "1"
},
{
"tabLabel": "tabTuition",
"value": "25380.00",
"pageNumber": "1",
"documentId": "1"
},
{
"tabLabel": "tabOtherFees",
"value": "0.00",
"pageNumber": "1",
"documentId": "1"
},
{
"tabLabel": "tabBooks",
"value": "3147.00",
"pageNumber": "1",
"documentId": "1"
},
{
"tabLabel": "tabCollege1",
"value": "X Adams",
"pageNumber": "1",
"documentId": "1"
},
{
"tabLabel": "tabPrice",
"value": "28552.0000",
"pageNumber": "1",
"documentId": "1"
}
]
},
"clientUserId": "1",
"roleName": "Student",
"name": "X Adams",
"email": "hmitchell@ata.edu"
}
], "status": "sent"
}
有人能看到为什么只有tabCollege1数据字段不会填充的原因吗?
感谢您的帮助。
PS。我试图发布dataField定义,但是SO不会允许它。
答案 0 :(得分:2)
从语法角度来看,我发现您发布的JSON没有任何问题。至于为什么没有填充 tabCollege1 字段,至少有几种可能性会浮现在脑海中:
API请求(tabCollege1)中指定的 名称 字段与模板中定义的字段名称不完全匹配(CASE和拼写)
API请求(文本标签)中指定的 类型 字段与模板中定义的字段类型不匹配。
API请求中指定的字段的 所有者 (rolename = Student)与 tabCollege1 模板中指定的字段。
如果其中一项不允许您识别(并解决)您的问题,那么我建议您使用来自 GET收件人请求的API响应更新您的问题:< / p>
https://{{env}}.docusign.net/restapi/{{version}}/accounts/{{acctId}}/envelopes/{{envelopeId}}/recipients?include_tabs=true&include_extended=false
检查该回复(以及“创建信封”请求)应该可以让我们确定问题。
答案 1 :(得分:1)
每当我遇到标签没有通过API填充到模板的行为时,就会发现标签标签不符合您的预期。我建议仔细检查模板XML中的实际选项卡名称。如果它作为条件选项卡逻辑的一部分包含在内,您可能会看到预先标记到选项卡标签的guid。