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 Apps / Generating an ID field...
Power Apps
Answered

Generating an ID field that is a number

(0) ShareShare
ReportReport
Posted on by 383

What's the best way to generate a unique ID in PowerApps that is a number?

Most of my research results on generating an ID are timestamps, but those are not technically unique if two users access the app at the same time. Any suggestions, advice, or links to resources that describe how to generate unique IDs will be helpful. I would like it to be numbers.

Categories:
I have the same question (0)
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Kirsten2 

    I use First(Sort(datasource, ID, Descending)).ID+1 

  • Ramole Profile Picture
    Super User 2024 Season 1 on at

    @Kirsten2 
    I see a similar question you have asked and it was market as a solved? dated 1.12.2023

  • Kirsten2 Profile Picture
    383 on at

    Does this build off the SharePoint ID and just increment by 1?

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Kirsten2 

    Written this way it will build off the SharePoint ID but it would be useful if you wanted to create a "shadow" ID, say call it id1 First(Sort(datasource, id1, Descending)).id1+1 

    There are advantages to using a "shadow" id in SharePoint.  For more information see @WarrenBelz 's blog here

    https://www.practicalpowerapps.com/data/constructing-your-first-power-app-before-you-start/ 

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard