Docusign API-在通过模板创建的信封上预填充标签值 [英] Docusign API - prefilling tab values on envelope created from template

查看:78
本文介绍了Docusign API-在通过模板创建的信封上预填充标签值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我能够使用Docusign API从模板成功生成并发送信封。唯一的问题是制表符的值并没有按预期预填充(它们保持空白)。以下是基于DocuSign-REST-API-Webinar-April2013的相关代码:

I was able to successfully generate and send an envelope from template using the Docusign API. The only problem is that the tab values and not pre-populating as expected (they remain blank). Here is the relevant code based on DocuSign-REST-API-Webinar-April2013:

/////////////////////////////////////////////
// STEP 2 - Create an envelope 
////////////////////////////////////////////

 $data = array(
        "accountId" => $accountId, 
        "emailSubject" => "DocuSign API - Signature Request from Template",
        "templateId" => $templateId, 
        "templateRoles" => array( 
            array( 
                "email" => $email, 
                "name" => $recipientName, 
                "inPersonSignerName" => "Some Customer", 
                "roleName" => "Customer", 
                "routingOrder" => 2,
                "tabs" => array(
                    "textTabs" => array(
                        array(
                            "tabLabel"=> "mmr",
                            "value" => "29.95"
                        ) 
                    )
                ) 
            ),
            array( 
                "email" => $email, 
                "name" => $recipientName, 
                "inPersonSignerName" => "Some Tech", 
                "roleName" => "Tech", 
                "routingOrder" => 1,
                "tabs" => array( 
                    "textTabs" => array ( 
                        array (
                            "tabLabel" => "\\*state",
                            "value" => "North Carolina"),
                        array (
                            "tabLabel" => "\\*city",
                            "value" => "Raleigh")
                    )
                )
            )
        ),
        "status" => "sent");  

我在支持论坛,文档等上寻找答案的所有内容似乎都指向我所拥有的。我已经仔细检查了tabLabels,它们是正确的并已分配给正确的角色。该模板包含三个角色-技术(登录人员),客户(登录人员),数据输入(接收副本)。

All my searches for answers on support forums, documentation, etc seem to point to what I have. I have double-checked the tabLabels and they are correct and assigned to the correct role. The template contains three roles - Tech (Sign In Person), Customer (Sign In Person), Data Entry (Receive a Copy).

有人可以发现问题吗?我也尝试只使用 tabLabel => state和 tabLabel => city(即不使用通配符),但是存在相同的问题。让我知道您是否需要更多信息。谢谢!

Can anybody spot the problem? I also tried with just "tabLabel" => "state" and "tabLabel" => "city" (i.e. without the wildcard) but same problem. Let me know if you need more info. Thanks!

推荐答案

您是否已在模板中验证了标签已分配给预期的收件人?根据上面的代码,看起来标为 mmr的标签应分配给客户角色,标为 state和 city的标签应分配给技术人员。正确吗?

Have you verified in the template that the tags are assigned to the expected recipient? Based on your code above, it looks like the tag labeled "mmr" should be assigned to the Customer role and the tags labeled "state" and "city" are assigned to the Tech. Is that correct?

这篇关于Docusign API-在通过模板创建的信封上预填充标签值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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