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 / ''lock'' document in s...
Power Apps
Answered

''lock'' document in sharepoint

(0) ShareShare
ReportReport
Posted on by 432

Hello everyone.

 

I've created a PowerApp to enable users to browse through a sharepoint library (displayed in a Gallery) and have them manage the metadata fields of pdf documents in the library. There is a PDF Viewer element on the page which displays the selected pdf document.

However my PowerApp is (hopefully) going to be used my several users at the same time, and I don't want to have users 'managing' the same document at the same time. Preferably I'd make it as when a user selects a document that within a reasonable amount of time the document is checked-out/locked/etc. so other users won't be able to select it in the gallery or maybe not even apear in the gallery anymore.

 

I'm wondering what methods I could approach to achieve my goal, if any methods are available.

Hoping to hear your thoughts.

 

docmanaging.png

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    156,382 Most Valuable Professional on at

    Hi @gjeh ,

    I will try to give you a concept here.

    You could have a field in the library metadata "locked" with the user's name and time/date text or similar and Patch to this to the list when the document is opened. You could reset it when the document is closed or even activate a timer of the user's computer and reset it after a selected time. If another user tries to open a "locked" document, you would give them a message "Locked by xxxx on xxxx". You might also consider some override options

     

    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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#2
11manish Profile Picture

11manish 205 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard