#PowerPlatformTip 107 – ‘Last Item from SharePointList’

💡 Challenge:
You need the latest entry from a SharePoint list in PowerApps, but the direct approach seems out of reach.

Solution:
Employ SortByColumns to sort the SharePoint list by the ID column in descending order, then pluck out the first item with the First function.

🔧 How It’s Done:

  1. Utilize SortByColumns on the SharePoint data source, targeting the ID column with a descending sort order. This method arranges the items such that the latest entry is at the top.
  2. Apply the First function around the SortByColumns to grab now top-most item, effectively retrieving the last entry in your list.

🎉 Result:
This method ensures you access the most recent item from your SharePoint list in PowerApps, bypassing the limitation with the Last function elegantly.

🌟 Key Advantages:

  • Simplicity and Efficiency: A straightforward approach to accessing the most recent list entries.
  • Versatility: Can be adapted to sort by other columns for different scenarios.
  • PowerApps Integration: Seamlessly integrates within your PowerApps logic, enhancing functionality without complex workarounds.

If you want to see the overview above all #PowerPlatformTip – click here

Interested in training or personalized coaching to enhance your PowerPlatform skills? 🚀 Book a package with me at thepoweraddicts.ch and benefit from customized strategies for your success. 💡

Published by

Leave a comment

Exclusive Access to #PowerPlatformTips

Don't miss your Power insights!
Subscribe now to be the first to receive notifications about new tips and tricks that will elevate your PowerPlatform skills.

Continue Reading