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

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Aditi,

I don't see any direct step in Flow Designer to send attachment to Mid Server.

you can try to check the script step

Script step

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

refer below link

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

Aditi6
Tera Contributor

Thank you @Ankur Bawiskar  for prompt response.

But I want to send csv file only to Mid Server and not to any other server. Could you please provide solution for the below :

  1. extract csv attachment from a particular change ticket
  2. upload to mid server

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

@Aditi 

Hope you are doing good.

Let me know if I have answered your question.

If so, please mark appropriate response as correct & helpful so that this thread can be closed and others can be benefited by this.

Regards
Ankur

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