salesforce和Carbon副本的多个收件人

时间:2017-10-12 05:34:08

标签: salesforce docusignapi

嗨,大家好我正在尝试将2个收件人添加到我的文档中

  • ROUTINGORDER - 1应该是第一个签名者
  • ROUTINGORDER - 2应该是第二个签名者

但在添加第二个收件人时出现此错误

  

错误:问题:System.CalloutException:Web服务标注失败:   WebService返回SOAP Fault:Username和Password中的一个或两个   无效。 faultcode = soap:客户端faultactor =在Web.Config中缺失

你知道如何添加Carbon Copies

请在下面找到代码

The recipient Signer
    DocuSignAPI.Recipient recipient = new DocuSignAPI.Recipient();
    recipient.Email = signer_email;
    recipient.UserName = signer_name;
    recipient.ID = 1;
    recipient.Type_x = 'Signer';
    recipient.RoutingOrder = 1;
    recipient.CaptiveInfo = new DocuSignAPI.RecipientCaptiveInfo();
    recipient.RequireIDLookup = false;

The recipient Signer  tab 
    DocuSignAPI.Tab signHereTab = new DocuSignAPI.Tab();
    signHereTab.Type_x = 'SignHere';
    signHereTab.AnchorTabItem = new DocuSignAPI.AnchorTab();
    signHereTab.AnchorTabItem.AnchorTabString = 'signer1sig'; // Anchored for doc 1
    signHereTab.AnchorTabItem.XOffset = 8;
    signHereTab.RecipientID = 1;
    signHereTab.Name = 'Please sign here';
    signHereTab.ScaleValue = 1;
    signHereTab.TabLabel = 'signer1sig';

The recipient  User2
    DocuSignAPI.Recipient recipient1= new DocuSignAPI.Recipient();
    recipient1.Email = User2;
    recipient1.UserName = User2;
    recipient1.ID = 2;
    recipient1.Type_x = 'Signer';
    recipient1.RoutingOrder = 2;
    recipient1.CaptiveInfo = new DocuSignAPI.RecipientCaptiveInfo();

    recipient1.RequireIDLookup = false;   


The recipient  User2 tab 
    DocuSignAPI.Tab signHereTab1 = new DocuSignAPI.Tab();
    signHereTab1 .Type_x = 'SignHere';
    signHereTab1 .AnchorTabItem = new DocuSignAPI.AnchorTab();
    signHereTab1 .AnchorTabItem.AnchorTabString = 'signer2sig'; 
    signHereTab1 .AnchorTabItem.XOffset = 8;
    signHereTab1 .RecipientID = 2;
    signHereTab1 .Name = 'Please sign here ';
    signHereTab1 .ScaleValue = 1;



    DocuSignAPI.Envelope envelope = new DocuSignAPI.Envelope();
    envelope.Subject = subject;  
    envelope.AccountId = account_id;
    envelope.Tabs = new DocuSignAPI.ArrayOfTab();
    envelope.Tabs.Tab = new DocuSignAPI.Tab[2];
    envelope.Tabs.Tab.add(signHereTab);
    envelope.Tabs.Tab.add(signHereTab1 );
    envelope.Recipients = new DocuSignAPI.ArrayOfRecipient();
    envelope.Recipients.Recipient = new DocuSignAPI.Recipient[2];
    envelope.Recipients.Recipient.add(recipient);
    envelope.Recipients.Recipient.add(recipient1);

先谢谢你的帮助!!!!欢呼声

0 个答案:

没有答案