首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >调用CreateRecepientView时出错: Unknown_envelope_Recipient

调用CreateRecepientView时出错: Unknown_envelope_Recipient
EN

Stack Overflow用户
提问于 2021-01-09 06:14:56
回答 2查看 36关注 0票数 0

想要生成一个DocuSign网址嵌入到web应用程序。在打印屏幕下方。问题1从哪里获取“SignerCliendId”(MakeRecipientViewRequest的第三个参数)?2如何处理"Unknown_envelope_Recipient"?

BugPrintScreen

谢谢

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2021-01-12 05:08:16

我使用下面的代码在MakeEnvelope()中设置了clientUserId = '1000‘。

代码语言:javascript
复制
Signer1.ClientUserId = "1000"

并使用RecipientViewRequest

代码语言:javascript
复制
viewRequest = MakeRecipientViewRequest(signerEmail, signerName, "1000");

然后,它就能工作了!

票数 1
EN

Stack Overflow用户

发布于 2021-01-09 09:54:17

我看不到您的MakeRecipientViewRequest()方法,但请看下面我提供的C#代码,它可以满足您的需求。这里的问题是,您必须匹配要为其生成签名者视图的接收者(歌手)信息。系统无法找到这样的收件人,这就是您收到错误的原因。(我还注意到你使用了一个模板,所以可能也需要检查一下它是如何完成的)

代码语言:javascript
复制
        RecipientViewRequest viewRequest = MakeRecipientViewRequest(signerEmail, signerName);

private RecipientViewRequest MakeRecipientViewRequest(string signerEmail, string signerName)
{
    // Data for this method
    // signerEmail 
    // signerName
    // dsPingUrl -- class global
    // signerClientId -- class global
    // dsReturnUrl -- class global


    RecipientViewRequest viewRequest = new RecipientViewRequest();
    // Set the url where you want the recipient to go once they are done signing
    // should typically be a callback route somewhere in your app.
    // The query parameter is included as an example of how
    // to save/recover state information during the redirect to
    // the DocuSign signing ceremony. It's usually better to use
    // the session mechanism of your web framework. Query parameters
    // can be changed/spoofed very easily.
    viewRequest.ReturnUrl = dsReturnUrl + "?state=123";

    // How has your app authenticated the user? In addition to your app's
    // authentication, you can include authenticate steps from DocuSign.
    // Eg, SMS authentication
    viewRequest.AuthenticationMethod = "none";

    // Recipient information must match embedded recipient info
    // we used to create the envelope.
    viewRequest.Email = signerEmail;
    viewRequest.UserName = signerName;
    viewRequest.ClientUserId = signerClientId;

    // DocuSign recommends that you redirect to DocuSign for the
    // Signing Ceremony. There are multiple ways to save state.
    // To maintain your application's session, use the pingUrl
    // parameter. It causes the DocuSign Signing Ceremony web page
    // (not the DocuSign server) to send pings via AJAX to your
    // app,
    viewRequest.PingFrequency = "600"; // seconds
                                       // NOTE: The pings will only be sent if the pingUrl is an https address
    viewRequest.PingUrl = dsPingUrl; // optional setting

    return viewRequest;
}
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65637124

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档