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 / Can I show the Id befo...
Power Apps
Answered

Can I show the Id before submitting the form.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all 

I have a SharePoint List where one of the colomns is an Id. 

In my app I have a form where I fill different fields.

My question is :  when I make a new form , the Id field is empty so is it possible to show or have the Id of the new form before submitting the form?

Thanks for your help. 

 

Categories:
I have the same question (0)
  • Verified answer
    TheRobRush Profile Picture
    11,128 Moderator on at

    ID Field is auto generated by sharepoint. so what you would want to do is everytime you load a new form do a first/sort by id/descending on the sp list you will be adding to, then create a variable that is that result +1 and have your form just display that variable. Once you submit the form (don't try to submit id it will autogenerate) the id sharepoint generates will just be the most recent one +1 so they will match. (only time this would be inaccurate is if someone has deleted the most recent item in the sp list.

  • jhat Profile Picture
    14 on at

    The Rob Rush SuperUser is correct...

     

    I have used Last Submitted process in the past. Unfortunately it only works when there are no deletions in the list. For example, I had a list and all was well up until someone deleted from the list which through my ID count off by the number of entries deleted: Items 1, 2, 3, 4, 5, 6 were entered, but Item 6 was deleted. When you enter Item 7 you will get a PowerApps ID of 6, but SharePoint will show the ID as 7. And that's because the SharePoint Auto generated ID (6) was not reused - in other words there are 7 items entered even though one was deleted. Now this only occurs when the last item submitted is deleted before a new item is submitted. 

    SP_PA ID AutoGenerateIssue.png

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 103

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
wolenberg_ Profile Picture

wolenberg_ 67 Super User 2026 Season 1

Last 30 days Overall leaderboard