简体   繁体   English

通过收件人锁定,通过docusign API将信封重新发送给收件人

[英]Resend envelope to recipient through docusign API blocked due to locked recipient

In our app we have a way for users to generate docusign envelopes which then get tracked by status and signed through a chain of recipients. 在我们的应用程序中,我们为用户提供了一种生成文件信封的方式,然后按状态进行跟踪并通过一系列收件人进行签名。

I've added a feature to resend the document in our interface. 我添加了一项功能,可以在我们的界面中重新发送文档。 Using XML through the API I think I'm correctly requesting a resend of the envelope to recipients that are in the "delivered" status (meaning they were sent the document but haven't signed yet I think). 通过API使用XML,我认为我正确地要求将信封重新发送给处于“已交付”状态的收件人(这意味着他们已经发送了文档但尚未签名)。 I followed the concepts here: Resend DocuSign Emails 我遵循这里的概念: 重新发送DocuSign电子邮件

However I am unfortunately receiving an error when sending the resend request for the document: 但是,不幸的是,在发送文档的重新发送请求时收到错误:

ErrorCode: RECIPIENTS_LOCKED 错误代码:RECIPIENTS_LOCKED

Message: Recipients are locked and cannot be modified. 消息:收件人已锁定,无法修改。

I went back to the template and looked for options that might lock down changes to recipients (even though no changes are actually being made) and could only find the option "Sender cannot Add, Edit, Delete Recipients" in the Recipients and Routing section of template. 我回到模板,寻找可能锁定收件人更改的选项(即使实际上未进行任何更改),并且只能在“收件人和路由”部分的“发件人无法添加,编辑,删除收件人”中找到选项。模板。 Unchecking this option did not solve the issue though and I still get the same error when trying to resend documents. 取消选中此选项并不能解决问题,尝试重新发送文档时仍然出现相同的错误。

Is there another way I can unlock recipients of an envelope that will allow me to resend documents to them using the API? 有没有其他方法可以解锁信封的收件人,使我可以使用API​​向他们重新发送文档?

Edit 编辑

Endpoint URL: https://na2.docusign.net/restapi/v2/accounts/[accountId]/envelopes/[envelopeId]/recipients?resend_envelope=true 端点URL: https : //na2.docusign.net/restapi/v2/accounts/[ accountId]/envelopes/[envelopeId]/ recipients?resend_envelope=true

Request Body: 请求正文:

string requestBody = "<recipients xmlns:i=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"http://www.docusign.com/restapi\">" +
            "<signers><signer>" +
                "<recipientId>" + recipientId.ToString() + "</recipientId>" +
                "<name>" + recipientName + "</name>" +
                "<email>" + recipientEmail + "</email>" +
            "</signer></signers></recipients>";

Did some more digging on this one and was able to reproduce this behavior under the following conditions: 在此方面做了一些进一步的挖掘,并能够在以下条件下重现此行为:

If you create an envelope from a template and specify the recipientsLock=true on the createEnvelope request, and you perform a correct w/re-send, you must specify a valid recipientID defined on the template. 如果您从模板创建信封,并在createEnvelope请求上指定receivesLock = true,并且执行正确的重新发送,则必须指定在模板上定义的有效接收者ID。 Please make sure that you are using the recipientID value from the GET and NOT the recipientIDGuid or UserID. 请确保您使用的是GET中的receiveID值,而不是使用receiveIDGuid或UserID。

API information on creating template w/recipientsLock: https://www.docusign.com/p/RESTAPIGuide/RESTAPIGuide.htm#REST%20API%20References/Post%20Template.htm?Highlight=recipientslock 有关使用收件人锁定创建模板的API信息: https : //www.docusign.com/p/RESTAPIGuide/RESTAPIGuide.htm#REST%20API%20References/Post%20Template.htm?Highlight= recipientslock

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM