Transfer file to mid server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-22-2018 08:48 AM
Hi all,
how can i transfer a pdf file from servicenow instance to the mid server via script?
Thanks!
Best regards,
Emanuele Signorin
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-22-2018 08:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-22-2018 06:15 PM
Hi Emanuele,
You will have to write mid server script include and then using Attachment API provided by servicenow download the attachments to mid server location.
This coding has to be written in mid server script include.
Steps:
1) Send attachment record sys_id to mid server
2) Send username and password to access the attachment api
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks,
Aditya Telidevara

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-10-2021 07:57 AM
Hi
Alternatively you can use orchestration to achieve this.