How to create data table from for each output

Hello. I am trying to have list of file names in a folder as data table. I am using for each loop to get file names:


But unfortunatelly, I couldn’t find a way to collect each iteration in a data table.

How can I do this?

Hi Anna,
Welcome back to the forum under new name
A flow could look like this:

For some more help on the Filesystem Api option have a look here:

Hello. Thank you your reply. I think I have changed my name by mistake.

I have a problem with your solution. When I used “Add Data Row” function, it asks for array. But I have only one variable.

just use {YourFileName} - assumed it’s a 1 column datatable structure

Here I didn’t understand how to use FileName string?

on ArrayRow:

It worked. Thank you. Have a nice day.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.