DocuSignAPI为收件人2 SOAP添加注释

时间:2013-07-16 20:47:34

标签: docusignapi

我正在使用SOAP API,并使用.NET集成了DocuSignAPI。

我有以下代码为每个收件人添加个人备注。

    recipient1.note = "this is recipient 1";
    recipient2.note = "this is recipient 2";

收件人1的注释显示,但不显示收件人2.

我做错了什么?请帮忙。

感谢。

1 个答案:

答案 0 :(得分:0)

使用PHP代码对我来说效果很好。这可能是一个案例问题,我为我的两个收件人的每个收件人使用大写的Note属性。我按如下方式设置它们:

$rcp1 = new Recipient();    // First recipient to put in recipient array
$rcp1->UserName = "John Doe";
$rcp1->Email = $_apiRecipient1Email;
$rcp1->Type = RecipientTypeCode::Signer;
$rcp1->ID = "1";
$rcp1->RoutingOrder = 1;
$rcp1->RequireIDLookup = FALSE;
$rcp1->Note = "Note One";

$rcp2 = new Recipient();    // Second recipient to put in recipient array
$rcp2->UserName = "Joe Mama";
$rcp2->Email = $_apiRecipient2Email;
$rcp2->Type = RecipientTypeCode::Signer;
$rcp2->ID = "2";
$rcp2->RoutingOrder = 1;
$rcp2->RequireIDLookup = FALSE;
$rcp2->Note = "Note Two";