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 / 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

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