使用REST API预先填充模板选项卡 [英] Pre-populating Template Tabs with REST API

查看:68
本文介绍了使用REST API预先填充模板选项卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试使用我的帐户中的模板在发送信封之前预先填充一些字段,但是当签名者/收件人在其电子邮件中收到指向文档的链接时,这些字段将保留为空白。这是我用来在API中发出请求的JSON的一部分:

Trying to pre-populate some fields before sending an envelope using a template in my account, but when the signer/recipient receives the link to the document in their email, the fields are left blank. Here's a portion of the JSON I'm using to make the request in the API:

var body = JSON.stringify({
  "emailSubject": "DocuSign API call - Request Signature",
  "templateId": templateId,
  "templateRoles": [{
  "email": recipientEmail,
  "name": recipientName,
  "roleName": templateRoleName,
  "tabs": {
    "companyTabs": [
     {
      "tabLabel": "\\*SignerCompany",
      "value": recipientCompany
     },
    ],
    "titleTabs": [
     {
      "tabLabel": "\\*SignerTitle",
      "value": recipientTitle
     }
    ]
   }
  }],
  "status": "sent", ....

因此,公司和标题标签为 SignerCompany和 SignerTitle 没有为接收者预先填充。我尝试过更改字体颜色和其他东西,这些东西似乎有用,但是以某种方式却无法实现。

So the company and title tabs with the labels "SignerCompany" and "SignerTitle" aren't being pre-filled for the recipient. I've tried changing font colors and other things and those seem to work, but somehow the value just doesn't.

我看过很多尝试预先填充这些模板时遇到了类似的问题,但还没有弄清楚。

I've viewed many similar problems with trying to pre-populate these templates but haven't been able to figure it out. Any help is much appreciated!

推荐答案

在最近的另一个Stack Overflow帖子中刚刚问(并回答了)。问题是您不能特别设置公司标题选项卡(它们是只读的)。

This was just asked (and answered) in another recent Stack Overflow post. The issue is that you can not set the company and title tabs in particular (they are read-only).

系统会根据用户的帐户个人资料填充其数据,因此,如果个人资料中没有个人资料或个人资料中没有数据,它们将显示为空白。

The system populates their data based on the user's account profile, so if no profile or no data in their profile they'll show up as blank as you're seeing.

请参阅此帖子以获取更详细的答案: https:// stackoverflow。 com / a / 38009218/1968395

See this post for a more detailed answer: https://stackoverflow.com/a/38009218/1968395

这篇关于使用REST API预先填充模板选项卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆