Tuesday, November 22, 2022

#939 OIC -> Working with the AdobeSign Adapter Part II

Carrying on from the previous post - 

Multiple Signers


first area I want to cover is multiple signers.
I try this out in Postman to check the proper input payload format - 

{
   "documentCreationInfo": {
       "signatureType""ESIGN",
       "recipientSetInfos": [
           {
               "recipientSetMemberInfos": [
                   {
                       "email""signer1@gmail.com"
                   },
                    {
                       "email""signer2@gmail.com"
                   }
               ],
               "recipientSetRole""SIGNER"
           }
        ],
       "signatureFlow""SENDER_SIGNATURE_NOT_REQUIRED",
       "message""Please Sign this from us!",
       "fileInfos": [
           {
               "transientDocumentId""3AAABLblqZhAyspx613JK3tJq6cUmD-dKzXZm95pfWOY_wkXEVnuy4aXg3JLnPnPCOGjkMnQfnvl7jObWlKB81fS0_vwZiYgq1J-zMa9KYxuE0THz7JZpVflhnKlV9lcZmtZnNwMYELmg_dW4MkjTD8E04Y-bu_mQolAB_Pbjbe0c7gJouPEOKYr6MVinoC0PTl7IyqjXor45xtXDqt3iO6VIezm_bt0ZtQBCTzfz530wv-innjXk8ItuAJY_EXqVAqh-a_xMROmmo3r4r3nsDoYSUvYuL5XE8OlA8Zr4VpQ3hIAxmJ7Yy7LlMnKPG1ZJFeqRonntSlP-kyYIlts-8J__AI2HQtI3"
           }
       ],
       "name""agreementNewEmpContract"
   },
   "options": {
        "noChrome"true,
        "authoringRequested"false,
        "autoLoginUser"true
}
}

So now I know what I need to re-create in OIC -

My trigger request is now as follows - 




 








The mapping for SendAgreement is as follows -





Checking on Agreement Status

So the document is now out for signing. You want to take the next steps, once all signers have done the necessary. First step is to check agreement status - here is the basic OIC scheduled integration flow for such - 



The AdobeSign Invoke is configured as follows - 


























As you can see, I am retrieving a list of agreements and then checking the status of each. I could, of course, use the Get Agreement Status operation, if I was only interested in a specific agreement. 

Get Agreement List for User allows me to add a query parameter to the request.


The query can be set as follows - 










I could also set this to the title of the document etc.

I run the integration and see 3 agreements have been returned -



I validate in AdobeSign -











Currently, the OIC AdobeSign adapter cannot be dropped as a trigger, so polling is the way to go here. 
However, AdobeSign supports webhooks - 


 

We can design an OIC integration that implements the required methods. check out the adobe docs for details.









No comments:

Post a Comment