Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Building CSV file programmatically without a schema

ILYA STEIN
Tera Guru

I am building a complex flow in Flow Designer, which requires sending a report CSV file upon completion. I already have code that creates comma separated lines (strings), so I was trying to build a file using that code and without a schema. That is, instead of using Begin File -> Append to Delimited File -> Build file, I would like to use Begin File -> Append to File... but now I am stuck because I am not seeing any action to close the file, which I expect to be needed. What should I do to close the file? I am comfortable with coding and can do a scripted action if needed, please share your thoughts / guidance.

1 ACCEPTED SOLUTION

Sorry this was a false alarm. The sequence Begin File -> Append to File -> Build file works for a code-generated CSV without a schema, you just have to set the File Type attribue to 'Others' in Begin File to avoid Flow Designer requiring a schema (as it does when 'Delimited File' is selected there).
I can provide details if there is interest.

View solution in original post

2 REPLIES 2

Laveena-Agarwal
Kilo Sage

Hi @ILYA STEIN 

 

A quick screenshot will be helpful to see what you have built so far!

Sorry this was a false alarm. The sequence Begin File -> Append to File -> Build file works for a code-generated CSV without a schema, you just have to set the File Type attribue to 'Others' in Begin File to avoid Flow Designer requiring a schema (as it does when 'Delimited File' is selected there).
I can provide details if there is interest.