接收到“收件人的无效电子邮件地址”;更改信封状态时 [英] receiving "invalid email address for recipient" when changing envelope status

查看:207
本文介绍了接收到“收件人的无效电子邮件地址”;更改信封状态时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用以下XML成功创建的信封:

I have an envelope created successfully with the following XML:

<envelopeDefinition xmlns="http://www.docusign.com/restapi">
<status>created</status>
<emailSubject>DocuSign Notification</emailSubject>
<templateId>826882b3-63fd-4e3a-95c6-e9d901824xxx</templateId>
<templateRoles>
<templateRole>
<email>xxxxxxx@aol.com</email>
<name>Ed Test</name>
<roleName>Signer</roleName>
<routingOrder>1</routingOrder>
<clientUserId>25</clientUserId>
<tabs>...LEFT OUT FOR BREVITY...</tabs>
</templateRole></templateRoles></envelopeDefinition>

当我尝试通过以下方式发送信封时:

When I attempt to send the envelope with:

public string SendEnvelope(string envelopeID)
{
    string url = baseURL + "/envelopes/" + envelopeID;
    string requestBody =
"<envelope>" +
"<status>sent</status>" +
"</envelope>";
    HttpWebRequest request = initializeRequest(url, "PUT", requestBody, email, password);
    string response = getResponseBody(request);
    return response;
}

我收到:

<errorDetails xmlns="http://www.docusign.com/restapi" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><errorCode>INVALID_EMAIL_ADDRESS_FOR_RECIPIENT</errorCode><message>The email address for the recipient is invalid. The recipient Id follows.</message></errorDetails>

电子邮件地址没有错。如果我创建状态为已发送而不是已创建的信封,则可以正常工作。如果尝试更改信封状态,我只会收到此错误。有谁知道为什么会这样以及如何解决?

There is nothing wrong with the email address. If I create the envelope with status of "sent" instead of "created" it works fine. I only get this error if attempting to change the envelope status. Does anyone know why this occurs and how to work around it ?

推荐答案

Ergin是正确的。如果我更改流程以添加一些步骤来检索DocuSign创建的签名者GUID,那么它将起作用。 API似乎在创建为已发送与创建为已创建并立即更改为已发送时以不同的方式处理它时,似乎仍是一个错误或至少是不一致的地方,但是至少有一种解决方法。在我的当前工作流程中,请参见相关文章。

Ergin is correct. If I change my process to add a few steps to retrieve the signers GUID that DocuSign creates, then it works. It still seems like a bug, or at least an inconsistency, that the API handles it differently when created as "sent" versus created as "created" and immediately changed to "sent", but it at least has a workaround. See my answer on this related post for my current, working process.

这篇关于接收到“收件人的无效电子邮件地址”;更改信封状态时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆