FTP file transfer with in Midserver

balaram
Mega Contributor

How can we transfer files from one folder to another folder in MidServer ? We need to copy files daily.

Please provide your inputs.

Thanks

4 REPLIES 4

ashwinkumar_pat
Giga Expert

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.


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


ServiceNow Share



Have a look there, I believe there are even more options.


Hi Daniel,



Thank you for your response!



Can you please share sample MID Server Script Include.



Thanks


Daniel Draes
ServiceNow Employee
ServiceNow Employee

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.