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 / Getting maximum value ...
Power Automate
Unanswered

Getting maximum value from SharePoint column

(0) ShareShare
ReportReport
Posted on by 109

I have a SharePoint list with a number column called Index.

 

I'd like to work out the maximum value in this column. I attempted to use the suggestion found here :

 

https://powerusers.microsoft.com/t5/Building-Flows/Maximum-value-between-items-returned-by-quot-Get-Items-quot/td-p/323023, but my Index column does not show as Dynamic Content, to use in the Apply to each.

 

Is there a way to resolve this, or an alternative way to establish the max value?

Categories:
  • CU-18081211-6 Profile Picture
    9,272 Moderator on at

    @bd528 ,

    My thoughts:

    gabibalaban_0-1643370166631.png

    1. Use a Sharepoint - Get_items action with parameter: Order by set as Index asc and Count set to 1.

    2. Refer to previous action outputs with: 

    first(body('Get_items')['value])['Index']
    or
    first(outputs('Get_items')['body\value'])['Index']
    Hope it helps !

     

     

     

  • bd528 Profile Picture
    109 on at

    @gabibalaban Thaks for your suggestion. For both f those options I get an "Enter a valid integer" error

  • CU-18081211-6 Profile Picture
    9,272 Moderator on at

    @bd528 ,

    Use type string for MaxIndex to see the result and can you put a screen shot with the flow. 

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 302 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 263

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard