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 Unique Sequ...
Power Apps
Answered

Generating Unique Sequential ID Based Off of Sharepoint Lists

(0) ShareShare
ReportReport
Posted on by

Hello,

 

I've created a form which intends to input data and populate it into a list in Sharepoint.  Each entry needs to have a sequential unique ID.  What I'd like to do is:

 

On Selection of Texas from my dropdown - Pull the highest ID from the list (TX Switching Order Record 2023) and +1 to continue the sequence.

I have a formula built into the Sharepoint list to code it appropriately, but I need to display the current ID on the app.

 

Sorry if this has been commented on already.  I'm new to Power Apps.  Screenshots for reference.  Thanks in advance.

 

Formula for the ID and format on the list.Formula for the ID and format on the list.Format on the Sharepoint ListFormat on the Sharepoint ListDisplay in the app (currently manually inserted)Display in the app (currently manually inserted)

 

Categories:
I have the same question (0)
  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    @cborde3 do you only want the highest ID of the Texas record or all records?
    Should you want to have the highest ID of all records you can add the following code to a label (Text property):

     

    "TX" & Text(First(Sort(SharePointList, ID, Descending)).ID + 1), "00000")

     


    You could set the Visible property to: DropDownName.Selected.Value = "Texas". (value might need to be changed to the field name, depending on the use case)

     This will sort the list on highest auto ID first and return the first record's Switching Order value.

    If this solves your question, would you be so kind as to accept it as a solution.

  • CU06081315-1 Profile Picture
    on at

    Thank you, this worked!

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard