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 / Auto-generate sequenti...
Power Apps
Unanswered

Auto-generate sequential ID (reference number) in SharePoint List and display on submission form

(1) ShareShare
ReportReport
Posted on by 4

I have an OOS Log SharePoint List for tracking OOS events (+ Power App submission form) and each entry needs a unique reference number in the format of "LABOOS-YYYY-##" (e.g. 3rd OOS event this year would be logged as "LABOOS-2024-03").

 

How do I auto-generate this ID sequentially when entering a new incident on the submission form based on the previous entry already on the SharePoint list? The ID should be displayed (non-modifiable) on the submission form when entering an OOS incident, populated in the list ID column when the incident is submitted, and restart the incident numbering when a new year is reached.

Categories:
I have the same question (0)
  • AllanDeCastro Profile Picture
    412 Most Valuable Professional on at

    Hello

    I think this question is more related to SharePoint columns. You can add a calculated column (In the List Settings or Library Settings page, click on "Create column" then choose "Calculated" as the column type).

    In the Formula box, enter your formula. For example:

     

     

    ="LABOOS-" & TEXT(YEAR(Created), "yyyy") & "-" & TEXT(ID, "00")

     

     

    • YEAR(Created) retrieves the year part from the creation date of the item.
    • ID is the default ID column of SharePoint, which increments sequentially for each new item.
    • TEXT(..., "00") ensures that the sequential number (ID) is formatted with leading zeros.

     

    Once the calculated column is created, SharePoint will automatically calculate its value based on your formula for each item in the list or library.

  • labrat45 Profile Picture
    4 on at

    Thank you, however there seems to be an issue with the formula. Creating a new item on the list produces an ID of LABOOS-1905-00 for each new item. The year should be 2024 and the sequential number should follow whatever the most recent entry value is. (e.g. Previous entered event ID is LABOOS-2024-16, therefore new entry ID should be LABOOS-2024-17)

  • AllanDeCastro Profile Picture
    412 Most Valuable Professional on at

    Hello

    This is unusual since the reference number is based on the creation date and the item ID, which should be sequential for all items. Maybe check the data in both of these column on the created item to understand what happened.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard