我尝试使用compositeTemplate,以便在完成签名过程后发送特定用户的文档。 这是json Im发送:
{
"compositeTemplates": [{
"compositeTemplateId": "1",
"inlineTemplates": [{
"recipients": {
"carbonCopies": [{
"email": "mtaranto@test1.com",
"name": "CC Name",
"recipientId": "3",
"emailNotification": {
"emailBody": "email text",
"emailSubject": "Completed!!!! this is custom",
"supportedLanguage": "en"
}
}],
"signers": [{
"email": "mauriciotaranto@test.com",
"name": "A Name",
"recipientId": "1",
"roleName": "Participant A",
"ClientUserId": "123456",
"Tabs": {
"TextTabs": [{
"TabLabel": "PreferredPhoneNumber",
"Value": "001234567"
},
{
"TabLabel": "AlternatePhoneNumber",
"Value": "001234567"
},
{
"TabLabel": "BirthMM",
"Value": "04"
},
{
"TabLabel": "BirrthDD",
"Value": "18"
},
{
"TabLabel": "BirrthYY",
"Value": "1981"
},
{
"TabLabel": "DentalSchool",
"Value": "DentalSchool"
},
{
"TabLabel": "MedicalSchool",
"Value": "MedicalSchool"
},
{
"TabLabel": "OmsResidency",
"Value": "OmsResidency"
},
{
"TabLabel": "Intership",
"Value": "Intership"
},
{
"TabLabel": "Fellowship",
"Value": "Fellowship"
},
{
"TabLabel": "TrainingArea",
"Value": "TrainingArea"
}],
"RadioGroupTabs": [{
"groupName": "RadioPhone",
"radios": [{
"selected": true,
"value": "Radio2"
}],
},
{
"groupName": "AlternatePhoneNumber",
"radios": [{
"selected": true,
"value": "Radio1"
}],
},
{
"groupName": "MemberShip",
"radios": [{
"selected": true,
"value": "Radio2"
}],
},
{
"groupName": "RiskManagement",
"radios": [{
"selected": true,
"value": "Radio2"
}],
}],
"checkboxTabs": [{
"TabLabel": "SuffixDDS",
"selected": true,
},
{
"TabLabel": "SuffixMD",
"selected": true,
},
]
}
}]
},
"sequence": "2"
}],
"serverTemplates": [{
"sequence": "1",
"templateId": "07a2484d-c144-4ad6-a218-85b96bcea4ca"
}]
}],
"emailSubject": "Test flow with CC",
"status": "sent"
}
正如您所见,我还发送了客户端ID属性。这是因为我们正在使用嵌入式解决方案。
但是在创建信封并获得收件人视图后,这就是我所看到的:
正如您在图像上看到的那样,文档上没有标签数据,也没有唱片标签(我在模板上创建标签)。用户必须拖放。这不是我想要的。
我错过了什么?
谢谢!
答案 0 :(得分:1)
我认为您在ServerTemplate中的roleName是Test
。您需要在CompositeTemplate中使用相同的roleName,以便DocuSign知道您发送JSON调用的收件人数据。