下图显示了附件的docusign Salesforce Connect对象设置。它在文件名中提到“信封主题”。我试图找出从REST API创建信封时如何设置“信封主题”字段。
Docusign Attachment Filename "Envelope Subject"
这是我的创建信封标注:
{
"status": "sent",
"customFields": {
"textCustomFields": [
{
"name": "Compliance_Item__c",
"value": "' + cItem[0].Id + '",
"configurationType": "salesforce"
},
{
"name": "ComplianceItemId",
"value": "' + cItem[0].Id + '",
"configurationType": "salesforce"
}
]
},
"templateRoles": [
{
"clientUserId": 1,
"roleName": "Signer 1",
"name": "' + c.Name + '",
"email": "' + c.Email + '",
"tabs": {
"textTabs": [
{
"tabLabel": "SignerCompany",
"xPosition": "104",
"yPosition": "174",
"name": "SignerCompany",
"value": "' + c.Company_Name__c + '"
},
{
"tabLabel": "SignerTitle",
"xPosition": "104",
"yPosition": "202",
"name": "SignerTitle",
"value": "' + c.Title + '"
}
]
}
}
],
"returnUrl": "https://demo.docusign.net",
"email": "test@test.com",
"authenticationMethod": "email",
"userName": "WW Vendor",
"emailSubject": "Please Sign",
"templateId": "1234"
}
答案 0 :(得分:0)
电子邮件主题和邮件正文存储在信封定义中,分别为emailSubject和emailBlurb。
按照以下方式更改对某事的呼叫应该可以解决问题:
{
"status": "sent",
"customFields": {
"textCustomFields": [
{
"name": "Compliance_Item__c",
"value": "' + cItem[0].Id + '",
"configurationType": "salesforce"
},
{
"name": "ComplianceItemId",
"value": "' + cItem[0].Id + '",
"configurationType": "salesforce"
}
]
},
"templateRoles": [
{
"clientUserId": 1,
"roleName": "Signer 1",
"name": "' + c.Name + '",
"email": "' + c.Email + '",
"tabs": {
"textTabs": [
{
"tabLabel": "SignerCompany",
"xPosition": "104",
"yPosition": "174",
"name": "SignerCompany",
"value": "' + c.Company_Name__c + '"
},
{
"tabLabel": "SignerTitle",
"xPosition": "104",
"yPosition": "202",
"name": "SignerTitle",
"value": "' + c.Title + '"
}
]
}
}
],
"returnUrl": "https://demo.docusign.net",
"email": "test@test.com",
"authenticationMethod": "email",
"userName": "WW Vendor",
"emailSubject": "This is my email subject line",
"emailBlurb": "This is my email message body",
"templateId": "1234"
}