gpt4 book ai didi

docusignapi - 文档签名 : composite templates with tabs

转载 作者:行者123 更新时间:2023-12-04 16:48:23 24 4
gpt4 key购买 nike

创建信封时如何使用复合模板指定预填充字段。

我尝试在 inlineTemplate.recipients.signers[0].tabs 中包含标签信息,但我收到一个错误 System.String cannot be cast to API_REST.Models.v2.tabs .

如果我在 templateRoles 中包含信息作为模板角色,它被忽略。该文档提供了有关如何执行此操作的信息。似乎应该在内联模板中指定预填充数据。

我的其他未决问题包括 recipientId 是什么?做。什么是clientUserId用于?我们目前设置clientUserId为所有签名者设置相同的值。我看到它在签名者请求签名时使用。出于某种原因,它应该对每个签名者都是独一无二的吗?

它看起来也像一个单一的复合模板,将服务器和内联模板相互叠加。在单个复合模板中包含多个服务器模板或多个内联模板的用例是什么?

是否计划改进文档以描述如何将复合模板用于各种目的?

签名者/模板角色:

{
"clientUserId": "clientUserId",
"email": "first+last@email.com",
"name": "First Last",
"roleName": "role1",
"tabs": {
"textTabs": [
{
"locked": true,
"tabLabel": "\\*FieldName",
"value": "prefillValue"
}
]
}
}

示例请求:
{
"compositeTemplates": [
{
"inlineTemplates": [
{
"recipients": {
"signers": [
{
"clientUserId": "clientUserId",
"email": "first+last@email.com",
"name": "First Last",
"recipientId": 1,
"roleName": "role1",
"tabs": {
"textTabs": [{"tabLabel": "label", "value": "val"}]
}
}
]
},
"sequence": 1
}
],
"serverTemplates": [
{
"sequence": 1,
"templateId": "templateId1"
}
]
},
{
"inlineTemplates": [
{
"recipients": {
"signers": [
{
"clientUserId": "clientUserId",
"email": "first+last@better.com",
"name": "First Last",
"recipientId": 1,
"roleName": "role1",
"tabs": {
"textTabs": [{"tabLabel": "label", "value": "val"}]
}
}
]
},
"sequence": 2
}
],
"serverTemplates": [
{
"sequence": 2,
"templateId": "templateId2"
}
]
}
],
"emailSubject": "Email subject",
"status": "sent",
"templateId": null,
"templateRoles": null
}

最佳答案

关于从服务器模板发送信封的信息可以在 here. 中找到

RecipientID 由 tab 元素用于指示哪个收件人将签署文档,而 clientuserID 指定用户是否为 remote or embedded并且建议每个签名者都是唯一的(但不是必需的)。

我还建议阅读 this page关于复合模板,希望这个概念会更有意义,但我和你一样,缺乏关于复合模板的文档可能会很麻烦。

不幸的是,我没有包含选项卡数据的示例,但是从下面的示例中在每个收件人下添加选项卡部分应该没有问题。

{
"emailSubject": "DocuSign Comp Test 1",
"emailBlurb": "Example - Composite Templates",
"status": "sent",
"compositeTemplates": [
{
"serverTemplates": [
{
"sequence": "1",
"templateId": "templateId1"
}
],
"inlineTemplates": [
{
"sequence": "1",
"recipients": {
"signers": [
{
"email": "testsigner123@gmail.com",
"name": "Test Tester",
"recipientId": "1",
"roleName": "Signer 1"
}
]
}
}
]
},
{
"serverTemplates": [
{
"sequence": "2",
"templateId": "templateId2"
}
],
"inlineTemplates": [
{
"sequence": "2",
"recipients": {
"signers": [
{
"email": "testsigner123@gmail.com",
"name": "Test Tester",
"recipientId": "1",
"roleName": "Signer 1"
}
]
}
}
]
},
{
"serverTemplates": [
{
"sequence": "3",
"templateId": "templateId3"
}
],
"inlineTemplates": [
{
"sequence": "2",
"recipients": {
"signers": [
{
"email": "testsigner123@gmail.com",
"name": "Test Tester",
"recipientId": "1",
"roleName": "Signer 1"
}
]
}
}
]
}
]
}

关于docusignapi - 文档签名 : composite templates with tabs,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33920491/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com