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 / Reorder OData columns ...
Power Automate
Answered

Reorder OData columns in or from a query

(0) ShareShare
ReportReport
Posted on by 134

When constructing an OData query, is it possible to change the order the data is aligned and presented in? I'm trying to get some data from multiple objects using the expand command, with the end result being a CSV file. However, the file format I have to abide by doesn't align with the way the objects need to be accessed. I need some data from one object, data from another object, and then different data from that first object. Is there any way to do a query like $select {object 1 data}, $expand {object 2 data}, $select {object 1 data}, or will I have to do some post-query formatting to get it to align properly? 

 

As additional reference, here's an example of the way the CSV columns map to their locations in the objects I'm referencing. 

 

data from object 1, data from object 1, data from object 2, data from object 1, data from object 3, etc.

Categories:
I have the same question (0)
  • Verified answer
    cchannon Profile Picture
    4,702 Moderator on at

    No, there is no OData query parameter that will let you dictate the order of columns. You're going to have to process the data manually after retrieving results.

  • J-G Profile Picture
    134 on at

    Thank you for the help! Do you know the accepted method for arranging data that way? Is there an option in the 'Create CSV Table' action for example that lets you determine the column order, or is it just based on the order of data labels in the input? 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 252 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard