how to send an attachment from servicenow to third party application using multiform curl.

Naga19
Tera Contributor

Hi, 

I am trying to sending an attachment from ServiceNow to third-party application when we create an incident. 

I received the request body and api as well, but how could i configure in http method in rest message, could you please help me and please let me know if you required any information

Sample request: 

curl -v -u user@company.com:test -F 'attachments[]=@/Users/user/Desktop/api2.png' -F 'priority=3' -X PUT 'https://domain.com/api/v2/tickets/32'

 

Thanks 

Naga

 

 

5 REPLIES 5

Share the script and screenshots.

Regards
Ankur

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