Is it possible to place the Exported files from ServiceNow to Mid server in different folder
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2024 03:02 AM
Hi ,
There is a requirement to place the exported files from ServiceNow to place in the different folder (import$\hosting\Export\) or (D:\Import\VMware\Export\) rather than the mid server installation path (D:\ServiceNow\Agent\ServiceNow MID Server Integration Test\agent\export\DMI_Export)
Need your suggestion on this whether it can be done or not . If yes, is it best practice to do that.
Because other exports to the mid server will be affected which is pointing to the installation path.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2024 03:08 AM
Hi @AJ-TechTrek Any thoughts here.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2024 03:21 AM
Hi @mohanambalnanja ,
Yes we can place the files whatever location we want, refer the below.
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0860033
Please appreciate the efforts of community contributors by marking appropriate response as Mark my Answer Helpful or Accept Solution this may help other community users to follow correct solution in future.
Thanks
AJ
Linkedin Profile:- https://www.linkedin.com/in/ajay-kumar-66a91385/
ServiceNow Community Rising Star 2024
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2024 03:25 AM
Hi @mohanambalnanja ,
2 ways you can do this :
1. While servicenow places the file on mid server path , define the new path were the file needs to be placed (make sure to have proper access to the path for the user to read/write.).
var ecc = new GlideRecord("ecc_queue");
ecc.initialize();
ecc.agent = "mid.server.MyMidServer2";
ecc.topic = "Command";
ecc.name = "powershell move-item -Path C:\\MidServer\\Mid2\\agent\\export\\*.csv -Destination C:\\Temp";
ecc.queue = "output";
ecc.state = "ready";
2. You can create a simple powershell script which copies the file from one path to the other.
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2024 03:43 AM
Thank you all for your update. @Sohail Khilji Can you please confirm where should I write this script ?