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 / Two or more people usi...
Power Apps
Unanswered

Two or more people using the powerapp at the same time is creating a conflict in unique ID PLEASE HELP!

(0) ShareShare
ReportReport
Posted on by 22

So this is my very first PowerApp. It is using a SharePoint List as a datasource.

 

1. This PowerApp is a form which a user submits and sends it to flow for approval.

2. When the user opens the app, a unique ID is assigned to the user. The ID is calculated by Last ID in the datasource and increments it by 1.

 

For example, the SharePoint list has the last recorded ID "14"

User 'A' opened the app. The app calculated the ID to 15 and assigned it to the user.

User 'B' opened the app. The app calculated the ID to 15 and assigned it to the user.

 

None of them has patched the data into the source. But if the patched it, both of them would get the same id. I don't want this to happen.

 

Is there anyway I can handle this?

 

Thank you

Categories:
  • WarrenBelz Profile Picture
    156,969 Most Valuable Professional on at

    Hi @trance_addict14 ,

    SharePoint has a built-in unique ID (called ID) that is sequential and needs no management. I always simply use this. It is also a good cross-reference key for related data in other lists as it is always unique.

    If you want to manage another number, you could do a lookup before submitting the form - happy to help with this is if required.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I don't think IDs are allocated before you patch the data back to the list: just create an empty record with the list default, you will see an empty ID field, patch the data to the list and the ID field will be populated by Sharepoint. 

    So the first user that will patch will receive the ID 15 from sharepoint  and the second 16: nothing to handle on your side.

  • WarrenBelz Profile Picture
    156,969 Most Valuable Professional on at

    Hi @Anonymous IDs don't need management - they are automatically allocated by SharePoint and don't need to be written or Patched to the list.
    As mentioned however, you can manage another number by just before you patch setting a variable for

    First(Sort(YourList,YourIDNo,Descending)).YourIDNo + 1

    and patch this back as the next number.

     

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard