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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Answered

Create CSV from Array

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,
I have created a flow that should write data from a sharepoint list into a CSV file.

The CSV should be filled based on the array.

I get this error message:I get the Error : The property 'columns' must be specified unless the 'from' property value is an array of objects.

 

Because of the error message I am a bit confused what I have to do here to write the data into the CSV file.

Can someone here help me with my problem?

 

 

 

2023-05-03 16_56_25-Run History _ Power Automate und 1 weitere Seite - Geschäftlich – Microsoft​ Edg.jpg

 

 

 

Here is my Flow. 

2023-05-03 16_52_59-Edit your flow _ Power Automate und 1 weitere Seite - Geschäftlich – Microsoft​ .jpg2023-05-03 16_55_05-Edit your flow _ Power Automate und 1 weitere Seite - Geschäftlich – Microsoft​ .jpg

Categories:
I have the same question (0)
  • Manish Solanki Profile Picture
    15,169 Moderator on at

    Hi @newbi 

     

    You need to update the 'Append to array variable' action to incorporate the name of property with value. 'Convert to csv table' will accept those properties of array object as a header. I have designed a sample flow for you to refer:

    {"Col1Heading":"<dynamic col1 value>","Col2Heading":"<dynamic col2 value>"}

    ManishSolanki_0-1683130605686.png

    Please add all the columns in the format as mentioned above.

     

    If it works then please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello ManishSolanki, 

     

    Thanks for your helps 

    I'm not sure if i understand you correct. I add the values like in the "Append to array variable"

    2023-05-04 08_14_13-Edit your flow _ Power Automate und 6 weitere Seiten - Geschäftlich – Microsoft​.jpg

     

     

    Result in the csv two lines with the same values I added to the array. 

     

    2023-05-04 08_16_11-Run History _ Power Automate und 6 weitere Seiten - Geschäftlich – Microsoft​ Ed.jpg

    In the csv file I expected the following two lines with different times

    371; S11 - Kommt; 2023-04-27T11:56:00

    371; S11 - Kommt; 2023-04-27T15:09:00

     

    Thanks

     

  • Verified answer
    Manish Solanki Profile Picture
    15,169 Moderator on at

    Hi @newbi 

     

    You have hard coded the values in 'Append to array variable' action, but these should come from the SharePoint list inside "Apply to each" loop. To correct it, please replace "Append to array variable" action with the mentioned below:

    ManishSolanki_0-1683183727569.png

     

    Note: You need to change only the "Append to array variable" (highlighted in the above screenshot).

     

    If it solves your problem, then please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 1,027

#2
Valantis Profile Picture

Valantis 815

#3
Haque Profile Picture

Haque 630

Last 30 days Overall leaderboard