При отправке составного электронного письма каждому Получателю генерируются две записи статуса, и ему необходимо дважды подписать все документы.
Я попытался изменить последовательность для увеличения, а также переместить составной шаблон в другойместа в JSON построены. Кажется, ничто не влияет на количество раз, которое подписчики должны ответить.
Вот вывод JSON
{
"emailSubject": "Documents",
"emailBlurb": "Email subject, sign these documents",
"templateId": "template 1 Id",
"SourceId": "an opportunity Id",
"envelopeIdStamping": "false",
"templateRoles": [
{
"roleName": "Signer 1",
"name": "First Signername",
"email": "First Signer email",
"recipientId": "first signers Id"
},{
"roleName": "Signer 2",
"name": "Second Signername",
"email": "Second Signer email",
"recipientId": "second signers Id"
}],
"status": "sent",
"notification":
{
"UseAccountDefaults": "true"
},
"compositeTemplates": [
{
"serverTemplates": [
{
"sequence": "1",
"templateId": "template 1 Id"
}
],
"inlineTemplates": [
{"sequence": "1",
"customFields":
{
"textCustomFields":[
{
"value":"an opportunity Id",
"name":"Opportunity",
"configurationType":"salesforce"
},{
"value": "an opportunity Id",
"show": "false",
"required": "true",
"name": "DSFSSourceObjectId",
"fieldId": null
}]
},
"recipients":
{"signers":[
{"roleName": "Signer 1",
"name": "Second Signername",
"email": " Second Signer email",
"recipientId": "second signers Id"
},{
"roleName": "Signer 2",
"name": "First Signername",
"email": " First Signer email",
"recipientId": "first signers Id"
}]
}
}]
},{
"serverTemplates": [
{
"sequence": "1",
"templateId": "template 2 Id"
}
],
"inlineTemplates": [
{
"sequence": "1",
"customFields":
{
"textCustomFields":[
{
"value":"an opportunity Id",
"name":"Opportunity",
"configurationType":"salesforce"
},{
"value": "an opportunity Id",
"show": "false",
"required": "true",
"name": "DSFSSourceObjectId",
"fieldId": null
}
]
},
"recipients":
{
"signers":[
{
"roleName": "Signer 1",
"name": "Second Signername",
"email": " Second Signer email",
"recipientId": "second signers Id"
},
{
"roleName": "Signer 2",
"name": "First Signername",
"email": " First Signer email",
"recipientId": "first signers Id"
}]
}
}]
},{
"serverTemplates": [
{
"sequence": "1",
"templateId": "template 3 Id"
}
],
"inlineTemplates": [
{
"sequence": "1",
"customFields":
{
"textCustomFields":[
{
"value":"an opportunity Id",
"name":"Opportunity",
"configurationType":"salesforce"
},{
"value": "an opportunity Id",
"show": "false",
"required": "true",
"name": "DSFSSourceObjectId",
"fieldId": null
}
]
},
"recipients":
{
"signers":[
{
"roleName": "Signer 1",
"name": "Second Signername",
"email": " Second Signer email",
"recipientId": "second signers Id"
}]
}
}]
}
]
}