首页 > 解决方案 > Docusign - 设置收件人语言 - 收件人收到的电子邮件始终为英文

问题描述

在新的 Docusign API 中,支持设置通知收件人的语言。在 Docusign SOAP API 下使用“RecipientEmailNotification”类似乎很简单。

但由于某种原因,收件人收到的电子邮件始终是英文的。查看了本文档中提到的所有步骤:https ://developers.docusign.com/esign-rest-api/reference/Envelopes/EnvelopeRecipients/

看了下面的文章:

嵌入式 DocuSign 签名:使用收件人的语言

在 Docusign 电子邮件上设置语言

-- 从 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) 接收。

标签: docusignapi

解决方案


您必须确保在您的帐户上启用了此功能(请参阅支持文章 - https://support.docusign.com/en/guides/ndse-user-guide-recipient-language)才能使用此功能。请先查看是否可以从 Web 应用程序 UI 执行此操作,以确认您具有此功能。


推荐阅读