Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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

  • MrFrankenfurter Profile Picture
    4 on at
    Re: Order of information in html table

    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!

  • Expiscornovus Profile Picture
    31,639 Most Valuable Professional on at
    Re: Order of information in html table

    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?

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,618 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,962 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow