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 / How I can show the ID ...
Power Apps
Answered

How I can show the ID number when create items

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

93D72313-98ED-4B7C-A936-0452EA97DD77.jpeg

how I can show the ID number from database (share point) in power app screen, as showing in attachment all time give me error 

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,016 Most Valuable Professional on at

    Unfortunately, the ID isn't assigned by the system until after a new item is submitted.  So you can't show it on creation of a new item.  You can show it when editing an existing item.

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    So I can show the previous ID then +1,

    or is there any way?

  • Pstork1 Profile Picture
    69,016 Most Valuable Professional on at

    You should be able to show the previous highest ID +1.  But that won't be guaranteed to be the right ID.  There are a couple cases where it would show the wrong value.

    • A previous entry was created and then deleted.  Deleted IDs won't be reused so the highest ID currently +1 will be one short.
    • If two people create items at the same time they might both show the same value for highest ID +1, but the resulting items will have different IDs. Only one would be correct.
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Could you support me for writing the code to show the highest ID+1

  • Verified answer
    timl Profile Picture
    36,682 Super User 2026 Season 1 on at

    @Anonymous 

    Something along the lines of this will give you the highest ID+1

    First(
     SortByColumns(YourDataSource, "YourIDField", Descending)
    ).YourIDField + 1

     

  • Pstork1 Profile Picture
    69,016 Most Valuable Professional on at

    @timl 's code should do it.  But remember that is based on the current highest ID and may or may not represent the next ID to be assigned.

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!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 85

#2
WarrenBelz Profile Picture

WarrenBelz 76 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard