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

Hi Rajendra,



I was able to send document to DocuSign and I have account in DocuSign with my email address. So once recipient signs the document then I receive the email with completion from DocuSign.



But i want this email to come to ServiceNow instance so that once it receives an email; inbound email action will work and attach the attachment which is the signed document to the target record. I read that i can give cc as some other email which can be servicenow instance email address but not getting how to achieve this in DocuSign admin section.



Please help me in this regards



Regards


Ankur


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

Community Alums
Not applicable

Hi Ankur,



Give the instance email address as CC in docusign request, So that once user signed and approved the document CC address will receive the completion email with completed document.


create inbound email action and copy the document using below script.


GlideSysAttachment.copy('sourcetable', 'sys_id', 'destinationtable', 'sys_id');


Hi Rajendra,



Thanks for the details.



Regards


Ankur


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

Hi Rajendra,



I want to check on how we can use the DocuSign in production i.e. live account.


I know customer should have licensed docusign live account and admin privileges. But the Go Live process says that API plan is required to have API integration between DocuSign and other system.


I read the Go Live Process doesn't have any cost involved but the client/customer has to purchase API plans even if they have licensed docusign live account.



Can you guide me in this?



Regards


Ankur


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

Hi Ankur,

Im doing the similar integration , how ever in the document im not getting the signtab for the users to sign. the document is being sent but signtab is missing . Can you please me here ?

Thanks,

Sivaranjani