docusignapi - Docusign - 设置收件人语言 - 收件人收到的电子邮件始终为英文
问题描述
在新的 Docusign API 中,支持设置通知收件人的语言。在 Docusign SOAP API 下使用“RecipientEmailNotification”类似乎很简单。
但由于某种原因,收件人收到的电子邮件始终是英文的。查看了本文档中提到的所有步骤:https ://developers.docusign.com/esign-rest-api/reference/Envelopes/EnvelopeRecipients/
看了下面的文章:
-- 从 WSDL 创建的 Docusign 类 --
public class DocuSignAPI{
public class RecipientEmailNotification {
public String Subject;
public String EmailBlurb;
public String Language;
private String[] Subject_type_info = new String[]{'Subject','http://www.docusign.net/API/3.0',null,'0','1','false'};
private String[] EmailBlurb_type_info = new String[]{'EmailBlurb','http://www.docusign.net/API/3.0',null,'0','1','false'};
private String[] Language_type_info = new String[]{'Language','http://www.docusign.net/API/3.0',null,'0','1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.docusign.net/API/3.0','true','false'};
private String[] field_order_type_info = new String[]{'Subject','EmailBlurb','Language'};
}
}
-- 发起电子签名的类 --
//Set envelope
DocuSignAPI.Envelope envelope = new DocuSignAPI.Envelope();
envelope.Subject = 'test subject';
envelope.EmailBlurb = 'test blurb';
envelope.AccountId = accountId;
//Add recipient to envelope
DocuSignAPI.Recipient pdfRecipient = new DocuSignAPI.Recipient();
pdfRecipient.ID = i+1;
pdfRecipient.Type_x = 'Signer';
pdfRecipient.RoutingOrder = 1;
pdfRecipient.Email = 'test@google.com';
pdfRecipient.UserName = 'test user';
pdfRecipient.RequireIDLookup = false;
//Set recipient language
DocuSignAPI.RecipientEmailNotification emailNotification = new DocuSignAPI.RecipientEmailNotification();
emailNotification.Subject = 'SomeText';
emailNotification.EmailBlurb = 'SomeText';
emailNotification.Language = 'zh_CN';
pdfRecipient.EmailNotification = emailNotification;
//Call DocuSign API
DocuSignAPI.EnvelopeStatus es = dsApiSend.CreateAndSendEnvelope(envelope);
发给收件人“test@google.com”的电子邮件应使用 zh_CN,但以英文 (EN) 接收。
解决方案
您必须确保在您的帐户上启用了此功能(请参阅支持文章 - https://support.docusign.com/en/guides/ndse-user-guide-recipient-language)才能使用此功能。请先查看是否可以从 Web 应用程序 UI 执行此操作,以确认您具有此功能。
推荐阅读
- java - 何时使用 LocationManager/LocationListener VS。LocationServices/LocationCallback 跟踪用户位置?
- swift - 没有“clamp”候选产生预期的上下文结果类型“CGFloat”
- c++ - C++ 命名空间中的命名空间
- mongodb - $[] 没有更新所有数组元素?
- react-native - 没有导航道具的反应导航导航
- asp.net-core - 将 ASP.NET Core webapp 部署到 Raspberry Pi 以托管致命错误
- javascript - 蚂蚁设计resetFields()不清除输入
- c# - 使用 LINQ 的 GroupBy 和计数
- amazon-web-services - AWS EC2 - Amazon Linux AMI 之间有什么区别
- docker - 自动启动多个现有依赖容器的最佳方法是什么?