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

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard