FTP file transfer with in Midserver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-17-2017 02:48 PM
How can we transfer files from one folder to another folder in MidServer ? We need to copy files daily.
Please provide your inputs.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-17-2017 02:56 PM
Pls elaborate more on your requirement.
I am responding as per my understanding of your post -
I would just write a scheduled job at OS level (windows - scheduled task, unix flavors - cron job) to copy files from one folder to another.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-17-2017 11:18 PM
Sure, a job on the MID would help. But this leaves some pieces out... you don't know wether or not that job worked, you have no control if the file was already complete (could take longer sometimes),...etc.
I would recommend to check these options:
a) use a MID Server Script Include to do it. This can be started from within the instance. Ideally you use an export set and trigger the MID Server script as post action.
b) use an app from share like FTP File Builder or MID Server Exports.
https://share.servicenow.com/app.do#/detailV2/e5208f11e13fc2007c390227ffa71e0f/overview
Have a look there, I believe there are even more options.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-18-2017 06:40 AM
Hi Daniel,
Thank you for your response!
Can you please share sample MID Server Script Include.
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-18-2017 11:53 AM
Have a look here:
Using export sets for SFTP file transfer
This script should serve as an idea how you can move the file once it has been created.