Is it possible to fill in a tab on a server template? If so what would be the correct XML format to do that? I have tried the suggested solution from the post on the DocuSign forum, that solution did not work. I have read the documentation but it is unclear what the format should be and I can't seem to find any examples. This is what I have now and it is not working it returns and error 400: The XML request does not match the expected format. Does anyone know for sure the correct format?
* * Update ****
I used a JSON to XML converter to get the correct xml format. The following is accepted by the server but does not update the server template.
String requestBody = "<envelopeDefinition xmlns="http://www.docusign.com/restapi">" +
"<accountId>" + accountId + "</accountId>" +
"<status>sent</status>" +
"<emailSubject>" + emailSubject + "</emailSubject>" +
"<emailBlurb>" + emailBlurb + "</emailBlurb>" +
"<templateId>81bcad0d-91ed-4616-****-************</templateId>" +
"<templateRoles>" +
"<templateRole>" +
"<email>" + emailaddr4[0] + "</email>" +
"<name>" + names[0] + "</name>" +
"<roleName>Student</roleName>" +
"<tabs>" +
"<textTabs>" +
"<textTab>" +
"<tabLabel>StudentID</tabLabel>" +
"<value>" + student_id + "</value>" +
"<documentId>1</documentId>" +
"<pageNumber>1</pageNumber>" +
"</textTab>"
"</textTabs>" +
"</tabs>" +
"</templateRole>" +
"</templateRoles>" +
"</envelopeDefinition>";
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…