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 / Sorting an array by da...
Power Automate
Answered

Sorting an array by date (sharepoint history version)

(0) ShareShare
ReportReport
Posted on by 853
So I filtered a Sharepoint list item history version and the selected two fields I needed:
{
"Created": item()?['Created'],
"Estado": item()?['Estado']
}
 
From that I get this:
 
[
  {
    "Created""2025-02-26T08:05:14",
    "Estado""Processed"
  },
  {
    "Created""2025-02-24T15:44:09",
    "Estado""Processed"
  },
  {
    "Created""2025-02-21T09:04:09",
    "Estado""Processed"
  }
]
 
So basically to find out when a Status "Estado" has changed. I can see it changed to Processed on 2025-02-21T09:04:09, but have no I dea how to tell Power Automate to just then filter just that older one. After the Sharepoint list item was edited two more times, but no change on "Estado", I don't need that info, just WHEN the change was made from X to "Processed". 
 
How would I acheive this? Ty in advance!
Categories:
I have the same question (0)
  • Verified answer
    Chriddle Profile Picture
    8,504 Super User 2025 Season 2 on at
    Sort by 'Created', then take the first item:
    first(
    	sort(
    		outputs('Compose'),
    		'Created'
    	)
    )

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

Liquid error: Object of type 'Adxstudio.Xrm.Web.Mvc.Liquid.EntityReferenceDrop' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. trice602 392 Super User 2025 Season 2

#2
David_MA Profile Picture

Liquid error: Object of type 'Adxstudio.Xrm.Web.Mvc.Liquid.EntityReferenceDrop' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. David_MA 270 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Liquid error: Object of type 'Adxstudio.Xrm.Web.Mvc.Liquid.EntityReferenceDrop' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Expiscornovus 210 Most Valuable Professional

Last 30 days Overall leaderboard