web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How do I lock my galle...
Power Apps
Unanswered

How do I lock my gallery in power apps so when one user is an edit more of a line item, another use cannot enter edit mode as well so we don't get any of those concurrency errors?

(0) ShareShare
ReportReport
Posted on by 432

Record Locking: PowerApps can implement a locking mechanism to prevent multiple users from editing the same record simultaneously.

 

Is there anyway to implement or include some kind of concurrency handling for a powerapps gallery where each gallery line item is connected to a sharepoint online list line item?

Categories:
I have the same question (0)
  • mmollet Profile Picture
    3,187 on at

    @WarrenBelz and myself had someone ask this question yesterday and he came up with a better idea than mine (no surprise :P) and so I will share with you. 

     

    The idea is to grab the entire rows properties from sharepoint when you go to edit that row. These properties will include the auto-generated column that tracks the datetime for the last time the row was edited. This is the important piece of data you need. If you grab the row and it was last edited 4 hours ago and you make your changes using a form for example then you would check to verify that the rows last edited time has not changed while you were editing the form. 

     

    LookUp item in list and it says it was last edited at 3:15pm

    You make your changes to the row using the form

    Before submitting check that the last edited time is still 3:15pm. If this is not the case then someone else edited the item while you were and you know not to allow it to save. 

     

    The only other idea is to add a column that tracks if the row is 'checked out' or being accessed kind of like a semaphore in programming. The issue with this as Warren mentioned is that if someone hard exits the app then they can leave items checked out and inaccessable by anyone but themselves. 

  • dperez13 Profile Picture
    432 on at

    but shouldnt such a feature come built in by microsoft as is? is there anyway to just lock a form if its currently in edit mode by another user?

  • mmollet Profile Picture
    3,187 on at

    There are alot of features that would be nice for MSFT to add to Power Apps but they can only add so much at a time. Checking the 'Created' column is a fast and easy process to do so it shouldnt cause much hassle really. Maybe they will implement this at some point in the future. They do have "checking out" for files in SP so we know they can do it. 😛

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard