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 / Locking the ID not to ...
Power Apps
Answered

Locking the ID not to be used by other user

(0) ShareShare
ReportReport
Posted on by 9

I have an app that is using a SP form as database. I have the field ProjectID that generates an ID based on the last ID. The problem is that if 2 users uses at the same time the app to log a project the ID will be duplicated in SP. Is there a possibility to lock the ID from being reused at the same time? 

Categories:
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @EmanuelArcas 

    Not really.  You will need to think outside the box on this for your app.

    This is not uncommon when people are trying to generate their own ID's to use in the data.

     

    The options are:

    1) Immediately generate the record once the ProjectID is established

    2) Don't generate the ProjectID until after the data is submitted.

    3) Establish a separate table with transitory ProjectID's - use that table to simulate the concept of locking.

     

    I hope this is helpful for you.

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 194 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 150

Last 30 days Overall leaderboard