Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

How to send CSV files in the REST step of the flow designer

Madoka Ikemoto
Tera Contributor

Purpose

I want to send a CSV file in the REST step of the flow designer.

How to

The CSV file is located in sys_attachment.

(file type: text/csv)

「Get Attachments on Record」 to obtain CSV files.

(See Captcha for details.)

Send CSV file by specifying Type as FILE in Request Content.

Result

I cannot get a CSV file with Get Attachments on Record.

The count is set to 0.

So I can't pass it to the REST step.

How can I get the information from the CSV file and pass it to Request Content?

 

・Get Attachments on Record

find_real_file.png

・REST Step Settings

find_real_file.png

・Log of Get Attachments on Record

find_real_file.png

3 REPLIES 3

Community Alums
Not applicable

Hi @Madoka Ikemoto ,

You can use Script Action in flow and have server side code in it to generate CSV.

here for sample script, Please tweak as per your requirement :

Generate CSV file through script

Mark my answer correct & Helpful, if Applicable.

Thanks,

Sandeep

Community Alums
Not applicable

Hi @Madoka Ikemoto ,


Glad to see my answer helped You. 
Kindly mark the applicable answer as Correct & Helpful both such that others can get help.

Thanks,
Sandeep

MADOKA IKEMOTO1
Tera Contributor
Hi @Sandeep Dutta

I do not why but I could not mark the applicable answer as Correct, I thank you in the comments.

 Thanks for your help.