How to Create Docusign envelop using service Now rest Message

Community Alums
Not applicable

Hi,

i want to create docusign envelope from servicenow rest message.i'am attaching file to the rest message and sending request.below is my request.

--AAA

Content-Type: application/json

Content-Disposition: form-data

{

  "emailBlurb": "Email Blurb",

  "emailSubject": "Please sign",

  "documents": [

      {

          "name": "Mutual_NDA.pdf",

          "documentId": "1"

      }

  ],

  "recipients": {

      "signers": [

          {

              "deliveryMethod": "Email",

              "routingOrder": "1",

              "recipientId": "1",

              "name": "Rajenddra Prasad Darshanam",

              "email": "xxxxxxxxxxxx@gmail.com"

          }

      ]

  },

  "status": "sent",

  "messageLock": "true"

}

--AAA

Content-Type: application/pdf

Content-Disposition: file; documentId="1"

<documents removed>

--AAA--

1 ACCEPTED SOLUTION

Community Alums
Not applicable

HI all,


        fixed the issue by providing   file as base64 bits as base64 formart.


View solution in original post

23 REPLIES 23

monicarazdan
ServiceNow Employee
ServiceNow Employee

Hi Rajendra,



Please follow up on a similar discussion on our developers community here - DocuSign web service integration



There are good suggestions and tips to make the integration work.



Thanks!


Monica



ServiceNow


Community Alums
Not applicable

Thanks for ur Quick response Monica.


        but i din't find any discussion about envelop creation using Rest Message.


Thanks


Community Alums
Not applicable

HI all,


        fixed the issue by providing   file as base64 bits as base64 formart.


Ankur Bawiskar
Tera Patron
Tera Patron

Hi Rajendra,



Can you share details on how you integrated with Docusign. Which API (REST/SOAP) you used and sample script for consuming the API


I know we need an account on their website and then use username, password and integrator key



Can you give the steps followed in sending the file to Docusign?


Also how you downloaded the file from Docusign and attach it back to ServiceNow table record.



My requirement is to call the API once user clicks on UI Action. All the documents will be sent over via API call.


Then download the documents. how we will know when to download the document.



Regards


Ankur


Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader