想要生成一个DocuSign网址嵌入到web应用程序。在打印屏幕下方。问题1从哪里获取“SignerCliendId”(MakeRecipientViewRequest的第三个参数)?2如何处理"Unknown_envelope_Recipient"?
谢谢
发布于 2021-01-12 05:08:16
我使用下面的代码在MakeEnvelope()中设置了clientUserId = '1000‘。
Signer1.ClientUserId = "1000"并使用RecipientViewRequest
viewRequest = MakeRecipientViewRequest(signerEmail, signerName, "1000");然后,它就能工作了!
发布于 2021-01-09 09:54:17
我看不到您的MakeRecipientViewRequest()方法,但请看下面我提供的C#代码,它可以满足您的需求。这里的问题是,您必须匹配要为其生成签名者视图的接收者(歌手)信息。系统无法找到这样的收件人,这就是您收到错误的原因。(我还注意到你使用了一个模板,所以可能也需要检查一下它是如何完成的)
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;
}https://stackoverflow.com/questions/65637124
复制相似问题