web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Create CSV table input...
Power Automate
Unanswered

Create CSV table input limited

(0) ShareShare
ReportReport
Posted on by 216

My flow is meant to create a CSV file in OneDrive with all the files from selected SharePoint sites.

Each file is appended to a string variable (files) in a loop. Outside of the loop I then add this string variable to a Compose action.

I use the outputs of Compose in my Create CSV table action:

json(outputs('Compose_2'))

, then create my CSV file.

 

When I check the outputs of Compose, I have all the files that were added to the variable in the loop. But the inputs of Create CSV table are limited to just the first run in my loop. So my CSV file just has those listed.

 

Is this a bug? I can't see why this wouldn't be bringing across everything from the Compose outputs. I have also tried creating the table from the variable but I get the same issue.

 

Categories:
I have the same question (0)
  • lbendlin Profile Picture
    8,479 Super User 2025 Season 2 on at

    Please show more details of your flow.

  • CAlvy Profile Picture
    216 on at

    See below:

    1.Setting variables and preparing selected site names from the app. The outputs from the PowerApp are all site URLs.

    Screenshot 2024-01-19 083206.png

    2. Within the first apply to each, get the libraries for each site and define the required columns

    Screenshot 2024-01-19 083333.png

    3. For apply to each 3 within apply to each 2, get the files from each library, select the columns required and append to the files string variable

     

    Screenshot 2024-01-19 083432.png

     

    4. Outside of the loops, Compose 2 takes the files variable and we use that to create the CSV table

    Screenshot 2024-01-19 085035.png

    5. Finally create the file and open it in the app. 

    CAlvy_0-1705654504599.png

    As mentioned previously, outputs of Compose 2 includes all files from within apply to each 3. 

    Inputs of Create CSV table 2 only includes files from the first run of apply to each 3.

  • CAlvy Profile Picture
    216 on at

    So I worked out why the CSV table wasn't using all the outputs. There were ][ characters in the outputs of Compose 2. The ] would have been read as closing the array. I have used a Replace expression to replace these with a comma. However, now it's not reading the outputs as an array. I got the error:

    The property 'columns' must be specified unless the 'from' property value is an array of objects.

     

    I thought it was because the code begins with "[{ and ends with }]" so I tried to do another Replace just to remove the opening [ and closing ] but now it's reading it as an object and not an array. Any ideas on what else I could try please?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard