本文介绍了DocuSign RestApi-上载文档时出错-TAB_REFERS_TO_MISSING_DOCUMENT的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我尝试将模板(在我的网络帐户中创建)应用于我要上传的文档时,出现以下错误。
I'm getting the following error when I try to apply a template (created in my web account) to the document I'm trying to upload.
在tab元素中指定的DocumentId不引用此信封中的文档。Tab引用不存在的DocumentId 41791752。
"DocumentId specified in the tab element does not refer to a document in this envelope. Tab refers to DocumentId 41791752 which is not present."
任何帮助将不胜感激。谢谢。
Any help would be greatly appreciated. Thanks.
这是我的代码:
string xmlBody = "<envelopeDefinition xmlns=\"http://www.docusign.com/restapi\">" +
"<emailSubject>DocuSign API - Signature Request"</emailSubject>" +
"<status>sent</status>" + // "sent" to send immediately, "created" to save as draft in your account
"<compositeTemplates>" +
"<compositeTemplate>" +
"<serverTemplates>" +
"<serverTemplate>" +
"<sequence>1</sequence>" +
"<templateId>" + templateID + "</templateId>" +
"</serverTemplate>" +
"</serverTemplates>" +
"<inlineTemplates>" +
"<inlineTemplate>" +
"<sequence>2</sequence>" +
"<recipients>" +
"<signers>" +
"<signer>" +
"<recipientId>1</recipientId>" +
"<email>" + recipientEmail + "</email>" +
"<name>" + recipientName + "</name>" +
"<roleName>Signer</roleName>" +
"</signer>" +
"</signers>" +
"</recipients>" +
"</inlineTemplate>" +
"</inlineTemplates>" +
"<document>" +
"<name>" + documentName + "</name>" +
"<documentId>1</documentId>" +
"</document>" +
"</compositeTemplate>" +
"</compositeTemplates>" +
"</envelopeDefinition>";
推荐答案
您引用的错误消息:
我建议模板引用的是该DocumentId。但是您正在将文档注册为ID 1。
I suggest that the template is referring to that documentId. But you're registering your document as Id 1.
尝试更改
"<documentId>1</documentId>" +
to
"<documentId>41791752</documentId>" +
这篇关于DocuSign RestApi-上载文档时出错-TAB_REFERS_TO_MISSING_DOCUMENT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!