Docusignapi 使用apex toolkit使用docusign创建新收件人

Docusignapi 使用apex toolkit使用docusign创建新收件人,docusignapi,docusignapextoolkit,Docusignapi,Docusignapextoolkit,我正在使用Docusign apex工具包发送要签名的文档。问题是我想声明一个新的收件人(它没有存储在salesforce DB中),因此我尝试使用该函数 dfsle.Recipient myRecipient1 = dfsle.Recipient.Recipient(id, type, sequence, routingOrder, role, name, email, signingGroup, phone, authentication, note, emailSettings, host

我正在使用Docusign apex工具包发送要签名的文档。问题是我想声明一个新的收件人(它没有存储在salesforce DB中),因此我尝试使用该函数

dfsle.Recipient myRecipient1 = dfsle.Recipient.Recipient(id, type, sequence, routingOrder, role, name, email, signingGroup, phone, authentication, note, emailSettings, hostName, hostEmail, signNow, source, readOnly, required)` but I have got this error: `Method does not exist or incorrect signature: void Recipient(Id, String, Integer, Integer, NULL, String, String, NULL, String, NULL, String, NULL, String, String, Boolean, NULL, Boolean, Boolean) 
dfsle.Recipient.newRecipient

但我有这个错误

方法不可见:dfsle.Recipient
dfsle.Recipient.newRecipient(整数、字符串、dfsle.Recipient.Role、,
字符串,字符串,dfsle.Recipient.Authentication,字符串,布尔值)

此外,我还尝试使用该函数

dfsle.Recipient myRecipient1 = dfsle.Recipient.Recipient(id, type, sequence, routingOrder, role, name, email, signingGroup, phone, authentication, note, emailSettings, hostName, hostEmail, signNow, source, readOnly, required)` but I have got this error: `Method does not exist or incorrect signature: void Recipient(Id, String, Integer, Integer, NULL, String, String, NULL, String, NULL, String, NULL, String, String, Boolean, NULL, Boolean, Boolean) 
从类型中选择dfsle.Recipient

注意到我没有使用这个方法

dfsle.Recipient.fromSource


因为我想创建一个新收件人,而不使用salesforce中存储的对象。

您可以直接在apex中使用姓名和电子邮件地址显式添加收件人:

在我们的开发者网站上提到的例子中

我们网站的例子 //使用Recipient.fromSource方法创建收件人

dfsle.Recipient myRecipient = dfsle.Recipient.fromSource(
myContact.Name, // Recipient name
myContact.Email, // Recipient email
null, //Optional phone number
'Signer 1', //Role Name. Specify the exact role name from template
new dfsle.Entity(myContact.Id)); //source object for the Recipient
更新此示例以在Salesforce之外添加收件人

dfsle.Recipient myRecipient = dfsle.Recipient.fromSource(
Name, // External Recipient name
Email, // External Recipient email
null, //Optional phone number
'Signer 1', //Role Name. Specify the exact role name from template
null); //add source object here as null