How Can I Save a attachment file in mid server path, I have used the request.setRequestBodyFromAttachment(attachment.sys_id). But, from this I can send it to only thrid party urls.

san1989
Giga Guru

Hi,

I have used request.setRequestBodyFromAttachment(attachment.sys_id), in REST API and able to sent it to third party paths. 

  request.setEndpoint(end_pont);

How can send the attachment to th mid server path. In the above setEndpoint, what should be the path flow for sending this file to midserver.

For exapmle, if I am sending this attachment to another instance I can provide the endpoint url directly like https://dev58996.service-now.com/attachmnt/api/incident/0001112224455475475584. But If I wnat to send it to Mid Server what should be the path look like.

Or if you provide the exapmle for the path to local folder (computer which I am using), that will be great help. Thanks.

 

Thanks

1 REPLY 1

Prateek kumar
Mega Sage

Check this out:

https://community.servicenow.com/community?id=community_question&sys_id=39420baddb98dbc01dcaf3231f96...


Please mark my response as correct and helpful if it helped solved your question.
-Thanks