Json API未填充docusign模板自定义字段
我试图在我的模板上填充一些自定义字段。并在JSON上发送自定义字段的值 所以我所做的是:Json API未填充docusign模板自定义字段,json,docusignapi,Json,Docusignapi,我试图在我的模板上填充一些自定义字段。并在JSON上发送自定义字段的值 所以我所做的是: 登录到 编辑我的模板 转到“自定义字段”选项卡 点击加号按钮 创建名为“custom”的自定义字段 拖动模板上的字段 保存并关闭 现在,使用api Im尝试使用此模板创建一个envalope 根据我发现的一个问题: If the fields that you're trying to fill are data fields that you've placed on the
- 登录到
- 编辑我的模板
- 转到“自定义字段”选项卡
- 点击加号按钮
- 创建名为“custom”的自定义字段
- 拖动模板上的字段
- 保存并关闭
If the fields that you're trying to fill are data fields that
you've placed on the
documents within the Template, then these aren't "custom fields" -- they're "tabs".
因此,对于创建一个envalope,我将发送以下json:
{
"emailSubject":"This is a DocuSign Test from Mauricio",
"status":"sent",
"templateId":"a0847413-35ac-48ed-9ed6-9b7f96019eda",
"templateRoles":[
{
"email":"mtaranto@test12.com",
"name":"Mauricio Taranto",
"roleName":"Test",
"routingOrder":"1",
"tabs": {
"textTabs": [
{
"name": "Custom",
"value": "This is a custom value"
}
]
}
}
],
}
我在api响应的创建方面没有任何问题。我收到了电子邮件,也收到了PDF上的名称字段和电子邮件名称
但是我添加到模板中的自定义字段没有填充
“我的电子邮件”下的方框是自定义字段(参见图)
我做错了什么
谢谢你的帮助 标记名需要使用“tabLabel”参数而不是“name”参数。其他一切看起来都是正确的
作为旁注,如果要在文档上多次使用同一标记,则需要在标记名称之前添加\\*
,以便填充所有标记
将您的示例更改为这样应该可以:
{
"emailSubject": "This is a DocuSign Test from Mauricio",
"status": "sent",
"templateId": "a0847413-35ac-48ed-9ed6-9b7f96019eda",
"templateRoles": [{
"email": "mtaranto@test12.com",
"name": "Mauricio Taranto",
"roleName": "Test",
"routingOrder": "1",
"tabs": {
"textTabs": [{
"tabLabel": "\\*Custom",
"value": "This is a custom value"
}]
}
}],
}