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 / Notification or Lock i...
Power Apps
Answered

Notification or Lock if Another User is in a certain part of the App

(0) ShareShare
ReportReport
Posted on by 4

I have a PowerApps with a homescreen with five buttons. If you click one of these buttons, it takes you to a gallery filtered for a specific user's data, and the user can change certain things. This app is shared with five people. If a person clicks into one of the buttons, is there a way to lock other users from clicking into it or notifying that somebody is in it.

Categories:
  • Verified answer
    BhaskarDhone Profile Picture
    1,398 Super User 2026 Season 1 on at

    Simplest way to do is by creating new list for tracking app locking

    1. Create SharePoint List with fields like buttonName ( single line of text ) , IsLocked ( Yes / no) and Lockedby (Person)
    2. Add data to the list for each button 

    3. When user clicks on button1 , Patch the Button1 record with islock as true and locked by current user details

    If(
     LookUp(LockingList, ButtonName = "Button1").IsLocked ,
     Notify("This button is currently locked by another user.", Warning),
    Patch(
     LockingList,
     LookUp(LockingList, ButtonName = "Button1"),
     {
     IsLocked: true,
     LockedBy: {
     Claims: User().Email,
     Department: "",
     DisplayName: User().FullName,
     Email: User().Email,
     JobTitle: "",
     Picture: User().Image
     }
     }
    ); 
    Navigate(GalleryScreen, Fade)
    )

    4. Add button to refresh to check if lock is removed.

    Refresh(LockingList)

    5. Add button for user to release the lock

    Patch(
     LockingList,
     LookUp(LockingList, ButtonName = "Button1"),
     {
     IsLocked: false,
     LockedBy : Blank()
     }
    )

     

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 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard