I'm trying to attach a completed docusign document to a custom object (Compliance_Item__c) either under the notes and attachments or files related list in salesforce. I'm thinking it's an issue with my request but I'm unsure as to what needs to be changed to properly pass in the custom object's record id.
This is the request I am making to Docusign to create the envelope via REST Api.
{
"status": "sent",
"inlineTemplates": [
{
"customFields": {
"textCustomFields": [
{
"name": "Compliance_Item__c",
"value": "' + complianceItem.Id + '",
"configurationType": "salesforce"
}
]
}
}
],
"templateRoles": [
{
"clientUserId": 1,
"roleName": "Signer 1",
"name": "' + contact.Name + '",
"email": "' + contact.Email + '",
"tabs": {
"textTabs": [
{
"tabLabel": "SignerCompany",
"xPosition": "104",
"yPosition": "174",
"name": "SignerCompany",
"value": "' + contact.Company_Name__c + '"
},
{
"tabLabel": "SignerTitle",
"xPosition": "104",
"yPosition": "202",
"name": "SignerTitle",
"value": "' + contact.Title + '"
}
]
}
}
],
"returnUrl": "https://demo.docusign.net",
"email": "[email protected]",
"authenticationMethod": "email",
"userName": "WW Vendor",
"emailSubject": "Please DocuSign Test Document",
"templateId": "' + templateId + '"
}
Here's an image of the docusign settings for connecting to my salesforce custom object.