[英]DocuSign, Sending 2 documents, signhere documentid is ignored
[英]Docusign SDK - Why document_id are ignored when creating a SignHere tag?
我使用 docusign-esign SDK for Python,版本 3.3.0。
假设我在同一个信封里有两个不同的文件,并且同一个签字人必须同时签署它们。
我声明以下实体,这是我的代码的简化版本:
documents = await build_docusign_documents() # A list of instances that modelise my documents that needs be signed on Docusign
john = database.users.get_john() # My user model instance.
signer = InPersonSigner(
signer_email=john.mail,
signer_name=f"{john.first_name} {john.last_name}",
recipient_id=1,
routing_order=1,
host_name=f"{representative.first_name} {representative.last_name}",
host_email=representative.mail,
tabs=Tabs(sign_here_tabs=[], date_signed_tabs=[]),
)
tabs = [
SignHere(
recipient_id=1,
document_id=document.id,
tab_label="SignHereTab",
anchor_string="DS_USER_SIGNING",
)
for document in documents
]
signer.tabs = Tabs(sign_here_tabs=tabs)
代码片段 abose 应该在两个不同的文档上声明两个“在此处签名”选项卡。
Docusign 界面中发生的事情完全不同,两个选项卡都是重复的。 (2 包 2 个重叠标签)
这意味着两个SignHere
情况下被触发由两个文件anchor_tag
,无论在document_id
提供的。
为了解决这个问题,我删除了document_id
键,并且只为用户声明了一个SignHere
选项卡,而不管需要多少选项卡。
这不是我从文档中理解的: https : //developers.docusign.com/docs/esign-rest-api/esign101/concepts/tabs/
添加带有锚标记的选项卡时,DocuSign 会在文档中搜索您提供的 anchorString 属性的实例。 对于每个找到的实例,它会为指定的收件人放置一个指定类型的选项卡。 可以通过提供 x 和 y 偏移量来设置与字符串实例相关的选项卡位置。
文档说扫描是针对整个文档而不是整个信封执行的。
它有效,但我不明白为什么,我对此感到不舒服。
谢谢
您的帐户有一个“锚点人口范围”的全局设置,用于确定锚点标签的范围。 它可以用于特定文档,也可以用于整个信封。 你的必须以另一种方式设置。 不幸的是,更改此设置需要您联系 DocuSign 支持。 此设置适用于您的所有信封,因此您需要确定是否需要更改它,如果需要,请访问 support.docusign.com 提出请求
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.