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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2019 07:28 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2019 07:49 AM
Check this out:
Please mark my response as correct and helpful if it helped solved your question.
-Thanks