Export set - How we can export file outside mid server path or to any other server's path

rutuja6
Tera Contributor

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!

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@rutuja6 

what happens if you enter a path which is not under Export folder of mid server? Does it fail?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

The connection is successful, but file does not get create in target folder.

rutuja6_0-1697452045923.png

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.

ShaliniJain
Tera Contributor

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

Hi @rutuja6 ,

 

Please refer to below thread:

https://www.servicenow.com/community/now-platform-articles/retrieving-attachments-from-servicenow-to...

 

If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!

 

Thanks & Regards,

Sumanth Meda