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

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard