当前位置: 首页 > 知识库问答 >
问题:

Docusign-设置收件人语言-收件人收到的电子邮件总是用英语

赫连俊悟
2023-03-14

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

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

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个答案

闻人伟
2023-03-14

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

 类似资料:
  • 我们有一个非常直接的DocuSign集成,用户可以从我们的文档管理工具中添加签名者并发送文档进行签名,签名者级别的更新由工具自动获取,并可在我们的工具内供请求者使用。 我们最近在DocuSign集成中遇到了一个相当意外的情况,DocuSign将签名者的一个电子邮件地址更新/更改/解析为另一个电子邮件地址。因此,每当我们(工具)尝试获取对应于该签名者的更新时,DocuSign都会不断返回空指针异常(

  • 在获取Docusign信封收件人视图的查询参数中,其中GET调用是“/RESTAPI/v2.1/accounts/{accountId}/envelops/{envelopeId}/documents/composited?recipient_id=123&documents_by_userid=false”,是recipient_id,即Docusign生成的GUID,还是我们必须在信封创建调用

  • 2)我的会话从不超时。根据DocuSign文档,会话在5分钟内超时,这是一个可配置的设置。我应该在哪里查看该设置以及如何测试会话超时? 3)当我请求一次收件人令牌时,如果我在短时间内请求获取令牌,我会得到一个错误。在我等待几分钟后,我可以很好地检索收件人令牌。在请求检索收件人令牌时,我是否应该考虑一个时间框架?

  • 在向信封添加签名者时,我看到了“emailnotification”选项(https://www.docusign.com/p/restapiguide/content/rest%20api%20references/recipities/signers%20recipition.htm)。但它看起来是关于DocuSign发送给签名者的电子邮件通知的语言。我想它不适用于我的用例,因为我使用嵌入式签

  • 我正在使用RESTAPI,并通过代码手动创建信封。我更喜欢我的网站检索收件人的docusign控制台链接,因此我禁用了沙盒中的电子邮件(首选项- 它成功了。我切换到从模板构建信封,现在电子邮件通知将从docusign发送给收件人。API的模板部分似乎有一些东西可以更改电子邮件的主题、正文等,但没有什么可以抑制它们”。有什么方法可以抑制收件人通知电子邮件吗?

  • emailNotification是假设只更改文档的国家设置,还是也可以更改电子邮件语言?