Docusign-设置收件人语言-收件人收到的电子邮件始终为英文

时间:2019-01-02 00:26:03

标签: docusignapi

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

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

看了以下文章:

Embedded DocuSign signing: using recipient's language

Set language on Docusign e-mail

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

1 个答案:

答案 0 :(得分:0)

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