简体   繁体   English

文件签名“WITNESS_FOR_SIGNER_ID_INVALID”

[英]Docusign "WITNESS_FOR_SIGNER_ID_INVALID"

I have two recipients in my template that need to be witnessed.我的模板中有两个收件人需要见证。 My requirement is to, keep the second recipient optional.我的要求是,保留第二个收件人可选。 That means I want to specify one or two recipients.这意味着我想指定一两个收件人。 I could create the envelope without the optional recipient, if the recipients don't need to be witnessed.如果收件人不需要见证,我可以在没有可选收件人的情况下创建信封。 As soon as I change the template so that they require a witness, I receive this error unless both are specified,一旦我更改模板以使其需要见证人,我就会收到此错误,除非两者都指定,

One or more errors occurred.发生一个或多个错误。 (Error calling CreateEnvelope: {"errorCode":"WITNESS_FOR_SIGNER_ID_INVALID","message":"The witness host signer Id is not valid. Witness recipient id = 4"}) (调用 CreateEnvelope 时出错:{"errorCode":"WITNESS_FOR_SIGNER_ID_INVALID","message":"见证主机签名者 ID 无效。见证收件人 ID = 4"})

I'm using CompositeTemplates to create the template.我正在使用CompositeTemplates创建模板。

 EnvelopeDefinition env = new EnvelopeDefinition { CompositeTemplates = compositeTemplates, Status = "created" }; var apiClient1 = new ApiClient(acct.BaseUri + "/restapi"); apiClient1.Configuration.DefaultHeader.Add("Authorization", "Bearer " + accessToken.access_token); EnvelopesApi envelopesApi = new EnvelopesApi(apiClient1); EnvelopeSummary results = envelopesApi.CreateEnvelope(acct.AccountId, env, new EnvelopesApi.CreateEnvelopeOptions { mergeRolesOnDraft= "true"});

So how can I create envelope with optional recipients that need to be witnessed?那么如何创建包含需要见证的可选收件人的信封?

If the template includes a recipient that is not optional, then when you create an envelope from this template - you must include that recipient.如果模板包含非可选的收件人,那么当您从该模板创建信封时 -您必须包括该收件人。

To support your scenario, remove the witness recipient from the template.为了支持您的方案,请从模板中删除见证收件人。 You can then use your code to add the witness when you want it然后,您可以在需要时使用您的代码添加见证人

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

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