I have been successfully using a composite template to add recipients to a server template.(see attached code) However, one of the recipients - Approver at routing order 3 is now a part of a conditional recipient group. (See attached image)
When I now try to overwrite the recipient at routing order 3, i end up with two recipients at routing order 3 instead of one. (See attached image)
I tried a workaround where I would simply update the recipient at routing order 3 using PUT method of the recipients endpoint in the REST api, however that did not work either.
How can I overwrite the recipient in the conditional routing group at routing order 3 using a composite template?
{
"emailSubject": "@{variables('SubjectLine')"},
"status": "sent",
"compositeTemplates": [
{
"serverTemplates": [
{
"sequence": "1",
"templateId": "@{items('For_each')?['hrsys_docusigntemplateid']"}
}
],
"inlineTemplates": [
{
"sequence": "2",
"recipients": {
"signers": [
{
"email": "@{items('For_each')?['hrsys_approveremail']"},
"name": "@{items('For_each')?['hrsys_approvername']"},
"recipientId": "2",
"roleName": "Approver",
"routingOrder":"3"
},
{
"email": "@{items('For_each')?['hrsys_revieweremail']"},
"name": "@{items('For_each')?['hrsys_reviewername']"},
"recipientId": "1",
"roleName": "Reviewer",
"routingOrder":"1"
}
]
}
}
],
"document": {
"documentBase64": "@{outputs('Get_Document')?['body/$content']"},
"documentId": "1",
"fileExtension": "pdf",
"name": "New Document"
}
}
]
}

