We've been sending compositeTemplates via the API for a while but hit a new issue recently when we started using a new template. Here's the compositeTemplates part of the request:
private void SetStartup(){
Microsoft.Win32.RegistryKey key;
key = Microsoft.Win32.Registry.CurrentUser.CreateSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Run");
key.SetValue(AppName, Application.ExecutablePath.ToString());
string ApplicationPath = "\"" + Application.ExecutablePath.ToString() + "\" -minimized";
key.SetValue("MyApplicationName", ApplicationPath);
key.Close();
}
The resulting envelope has the recipient tag twice, one for each template:
[
{
"compositeTemplateId"=>"1",
"serverTemplates"=>[
{
"sequence"=>"1",
"templateId"=>"4f01d07d-9362-4651-8bef-dccc5dbef03c"
}
],
"document"=>{
"name"=>"test1.pdf",
"documentId"=>"1"
},
"inlineTemplates"=>[
{
"sequence"=>"1",
"recipients"=>{
"signers"=>[
{
: name=>"Test Test",
: first_name=>"test",
: email=>"test@test.com",
: roleName=>"Client",
: clientUserId=>1,
: recipientId=>1,
: routingOrder=>1
}
]
}
}
]
},
{
"compositeTemplateId"=>"2",
"serverTemplates"=>[
{
"sequence"=>"2",
"templateId"=>"0F0DA764-3A4D-42EF-BC0E-1386487971C7"
}
],
"document"=>{
"name"=>"test2.pdf",
"documentId"=>"1"
},
"inlineTemplates"=>[
{
"sequence"=>"2",
"recipients"=>{
"signers"=>[
{
: name=>"Test Test",
: first_name=>"test",
: email=>"test@test.com",
: roleName=>"Client",
: clientUserId=>1,
: recipientId=>1,
: routingOrder=>1
}
]
}
}
]
}
]
Both templates have the signer at RoutingOrder 10 and RecipientID 2. I have tried different combinations of recipientId and routingOrder but nothing works. Also, I can't modify these templates.