Export set - How we can export file outside mid server path or to any other server's path
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2023 03:17 AM - edited 10-20-2023 01:52 AM
Hi,
I have to export Json file to the target location, But target file path is not under Mid Server's directory.
Currently, Json files are getting exported at this Path C:\\MidServer\\Mid2\\agent\\export\\
But, I want Json files to get export at this path Network:\\{{folder_name}}
How can I achieve this? can anyone share a script code that moves the files from the mid server target path to a mapped drive
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2023 03:20 AM
what happens if you enter a path which is not under Export folder of mid server? Does it fail?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2023 03:29 AM
The connection is successful, but file does not get create in target folder.
As, it is mention to add file_path which is under MID server's directory, but in my case the file_path is under another server's directory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2024 11:15 AM
Hi @rutuja6 , @Ankur Bawiskar ,
I have similar requirement where I have to copy the file to another windows server shared folder , could you please help share how we can achieve this?
Thanks & Best Regards,
Shalini Jain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2024 11:23 AM
Hi @rutuja6 ,
Please refer to below thread:
If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!
Thanks & Regards,
Sumanth Meda