Vivek Verma
Giga Sage

Hi,

 

here is the detailed solution for this thread,

 

 

Sending attachments   (ServiceNow to 3rd party)

1. Outbound Rest message- Need to ask for an endpoint of the 3rd party. Configure HTTP headers If any.

2. Use this Rest message in the business rule to send attachments

                  a. Call the rest message and simply send the binary content of the attachment to the request body using function request.setRequestBodyFromAttachment('<attachment sys_id>');

(RESTMessageV2 - setRequestBodyFromAttachment(String attachmentSysId)   )

 

 

find_real_file.png

  Screenshot of the business rule

 

 

Please Marked this question as the answered to close the thread.

 

Regards,

Vivek