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 Automate
Unanswered

Last Modified Date

(0) ShareShare
ReportReport
Posted on by 27

Hello,

I need to determine the last modified date for a share point list using Power automate. Any idea on the Expression?  Someone suggested using Max Date in “Get Items”. I may not be doing it correctly, so reaching out for assistance. 
Thank you

Categories:
I have the same question (0)
  • v-xiaochen-msft Profile Picture
    on at

    Hi @JoyK ,

     

    According to your description, you want to get the last modified datetime in SharePoint list .

    Here are the steps you can refer to :
    (1)We can use the "Get items" to get the items in SharePoint List:

    And this is the sample output:

    vxiaochenmsft_0-1696994847168.png

     

    (2)Then we can add a Select action  to  get all the "Modified" value:

    vxiaochenmsft_1-1696994847171.png

     

    (3)Then we can add a Compose action to get the max "Modified" value:

    last(sort(body('Select'),'Modified'))['Modified']

    vxiaochenmsft_2-1696994847173.png

     

     

    Then we can get the max of the "Modified" in SharePoint List:

    vxiaochenmsft_3-1696994847175.png

     

    Best Regards,

    Wearsky

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    What @v-xiaochen-msft suggested might be a solution if you were doing this in cloud flows. But since you posted this in the forums for Power Automate Desktop, I have to ask - are you doing this in desktop flows?

  • JoyK Profile Picture
    27 on at

    Yes I am. 
    thank you

  • JoyK Profile Picture
    27 on at

    Thank you

  • Verified answer
    v-xiaochen-msft Profile Picture
    on at

    Hi @JoyK ,

     

    Sorry, i may misunderstand your need , you want to realize it in Power Automate Desktop.

    You can try to use the "Get Items" in Power Automate Desktop like this:

    vxiaochenmsft_0-1697010179722.png

     

    The first step  "Get Items" , you need to configure the list you want to connect :

    vxiaochenmsft_1-1697010179730.png

     

     

    The For Each steps:

    vxiaochenmsft_2-1697010179736.png

     

    vxiaochenmsft_3-1697010179737.png

     

     

    The "Add Item to list" step:

    vxiaochenmsft_4-1697010179743.png

     

    The Last "Set variable":

    vxiaochenmsft_5-1697010179750.png

     

     

    Then in the last we can get the max modified datetime:

    vxiaochenmsft_6-1697010179752.png

    Best Regards,

    Wearsky

  • Verified answer
    Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    A simpler alternative to this would be adding some parameters to the Advanced options of Get items. If you set it to be ordered by Modified in descending order, you can then simply get the date of the first item. So, do it like this:

    Agnius_1-1697030444086.png

     

    And then you can get the date as %GetItemsResponse.Value[0].Modified%.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

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