通过Rest API为两位签名者创建协议

时间:2017-12-15 14:25:08

标签: adobe echosign

我们如何使用库文档创建一个协议,该文档将由两位签名者签名?我知道如何使用本教程使用echo sign web应用程序来做同样的事情:https://helpx.adobe.com/sign/help/send-agreement---multiple-signers.html

我在仪表板中创建了一个模板文档以供重复使用,我也为收件人添加了字段。但是当我使用该库文档和协议创建协议时,我创建了签名URL。但是这两个URL只允许其中一个签名。如果第二个签名者打开其链接,则文档显示为已签名。任何人都可以告诉我如何创建并让我的两位签名者使用Rest API完成协议?

1 个答案:

答案 0 :(得分:1)

请更改代码来自

//Create recipient set info        
var recipientSetInfo = new agreementsModel.RecipientSetInfo();        
recipientSetInfo.setRecipientSetMemberInfos(recipientSetMemberInfos);        
recipientSetInfo.setRecipientSetRole(agreementsModel.RecipientSetInfo.RecipientSetRoleEnum.SIGNER);        
recipientSetInfo.setRecipientSetName("fjenning@adobe.com");       

var recipientSetInfos = [];        
recipientSetInfos.push(recipientSetInfo);     

到此

var recipientSetInfos = [];
        //Create recipient set info    
        for (var i = 0; i < recipientSetMemberInfos.length; i++) {
            var recipientSetInfo = new agreementsModel.RecipientSetInfo();
            recipientSetInfo.setRecipientSetMemberInfos(recipientSetMemberInfos[i]);
            recipientSetInfo.setRecipientSetRole(agreementsModel.RecipientSetInfo.RecipientSetRoleEnum.SIGNER);
            recipientSetInfo.setSigningOrder("SEQUENTIAL");
            recipientSetInfo.setRecipientSetName(" Recepients");

            recipientSetInfos.push(recipientSetInfo);
        }