How to export a particular csv which is added as an attachment to a particular change request to Mid Server

Aditi6
Tera Contributor

Hi,

I am trying to download a csv to Mid Server using flow designer. This csv is added as an attachment to one of change ticket.

With the help of get attachment on record action, I am able to fetch the desired sys_id of the csv, but i am unable to export it to Mid Server. 

find_real_file.png

Any help would be appreciated.

Thanks in advance.

Best Regards,

Aditi

 

 

1 ACCEPTED SOLUTION

Hi,

I am not aware on how to achieve via Flow designer.

but steps for another approach

1) create mid server script include and function inside it

2) it would accept base64encoded data which will be passed via the script to trigger mid server script include

3) mid server script include function would use java packages call to create file with that by decoding the received data

refer the links below

How to send attachment files to MID Server

Send CSV file from MId-Server (/Midserver/agent/exports) to Network Server (Shared Folder)

Regards
Ankur

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

View solution in original post

10 REPLIES 10

Aditi6
Tera Contributor

@Ankur Bawiskar 

Thank you your i am able to achieve it via Flow Designer and BR.

Thanks,

Aditi

Nice to hear.

Please share the steps so that it helps community members

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

Ravi Srikanth
Tera Contributor

Hi Aditi,

Can I know how you achieved file transfer to MID Server using flow designer ? I have similar requirement to do using flow designer. 

 

Please provide the steps, it would definitely help community. 

 

Thanks

Ravi Srikanth 

wang_fuxing
Tera Contributor

Hi Aditi,

I encountered the same problem, please share your method, thank you very much

Hi wang_fuxing,

you can try to check the script step

Script step

You can also use another route of building mid server script include etc

please refer below link

Send CSV file from MId-Server (/Midserver/agent/exports) to Network Server (Shared Folder)

I used above 2 with a minimum tweak to achieve the desired output.

Please mark the answer correct, if it is helpful.

 

Regards,

Aditi