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 查看是否可以执行此操作,以确认您具有此功能。

最新更新