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 Platform Community / Forums / Power Automate / Reordering the columns...
Power Automate
Answered

Reordering the columns of the export csv file

(1) ShareShare
ReportReport
Posted on by 52
Hi
I am exporting a collection from power apps to CSV file via an instant flow (by clicking export button).
When I export the collection, the order of the columns is by default in ascending order.
I want to give a custom order and state which column should come first followed by which column. How to do it? Any help is much appreciated.
 
 
ForAll( gallery.allitems,
Collect(
        coldataexport,
        {
            Device_Name: ThisRecord.Device_Name,
            Policy_Name: ThisRecord.Policy_Name,
            Rule_Name: ThisRecord.Rule_Name,
          
        }
    )
);
Concurrent(
    Notify("Downloading report",NotificationType.Information),
    Set(Varfilelink,export1.Run(JSON(coldataexport,JSONFormat.IgnoreBinaryData & JSONFormat.IgnoreUnsupportedTypes)).file));   Launch(Varfilelink);Notify("Report Download complete",NotificationType.Success);)
Categories:
I have the same question (0)
  • Verified answer
    trice602 Profile Picture
    16,164 Super User 2026 Season 1 on at
    Hi,
     
    In the create csv table action, change the columns to custom and then put the columns in the order of your choice.  The left side if the label of the column and right side is the dynamic content.
     
     
    ------------------------------------------------


    If this was helpful, please like and/or mark as a verified answer to help others find this too!


    Always glad to help! 💯💯💯💯💯

    Tom 

    Follow me on LinkedIn - Thomas Rice, PMP | LinkedIn

     


     
  • CU10090150-0 Profile Picture
    52 on at
    Thanks much @trice602
    I used the custom columns option adding the dynamic content using item()?['column_name'] and it worked.

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 873

#2
Valantis Profile Picture

Valantis 822

#3
Haque Profile Picture

Haque 482

Last 30 days Overall leaderboard