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 / Order of information i...
Power Automate
Unanswered

Order of information in html table

(0) ShareShare
ReportReport
Posted on by 4

Hi, I have a power automate flow that pulls information from a sharepoint list and places it into an array variable, that is later converted into a HTML table and some CSS added before emailing out to a list of people.

 

My issue is that the flow pulls the last three items from the list, which are the shifts in the workplace - Early, Late and Night. 

 

These items will appear in a random order in the email, i.e. sometimes Early Late Night (desired) but other times Late, Early, Night etc. 

MrFrankenfurter_0-1646384715105.png

 

Is there a way of ensuring the items appear in the order 'Early Late Night'? They are always stored in the list in this order

MrFrankenfurter_0-1646384518475.png

 

Thanks in advance

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,851 Most Valuable Professional on at

    Hi @MrFrankenfurter,

     

    I see you are using Modified as a field for sorting. Modified is a date and time field, so every value is unique. This probably explains why it always is in a random order.

     

    Do you by any chance have another date column in your list setup? Like shift date?

     

  • MrFrankenfurter Profile Picture
    4 on at

    Thanks @Expiscornovus 

     

    Frustratingly no, I use modified (I could use created) because the shifts are inputted via an MS Form which does not have a time field. Allowing users to add their own time in plain text is a bit of an issue. The form is passed through a power automate flow which creates the item in a sharepoint list, so usually modified = created. 

     

    Typing this out got me thinking though - and I've altered the flow which creates the sharepoint items from the form to enter the items in the order I need and delay in between each item - which should give them a unique created (and therefore modified) time and hopefully get them in the right order. 

     

    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 953

#2
Valantis Profile Picture

Valantis 810

#3
Haque Profile Picture

Haque 622

Last 30 days Overall leaderboard