Skip to main content

Notifications

Community site session details
Power Apps - Building Power Apps
Answered

Lock a sharepoint list item form for only one user to edit at a time

Like (0) ShareShare
ReportReport
Posted on 24 May 2021 10:13:40 by 3

Hi All,

 

I have a form in powerapps database is sharepoint list. I want to make sure only one person can edit a form at a time. 

I know I can try to make a variable and set its value every time a person edits it. But what if the person closes the browser directly how do we reset the variable at such situation.

  • Shweta_Nayak Profile Picture
    3 on 01 Jun 2021 at 07:04:43
    Re: Lock a sharepoint list item form for only one user to edit at a time

    Thanks It worked for my Case.

  • Verified answer
    v-xiaochen-msft Profile Picture
    on 25 May 2021 at 01:58:24
    Re: Lock a sharepoint list item form for only one user to edit at a time

    Hi @Shweta_Nayak ,

     

    I assume that user A is using form. So user B cannot use form at this time.

    You could use the Timer control in powerapps.

    The timer interval is set to 5 minute. 

    Execute timer every 5 minutes.

    Each time the timer executes this: patch the current time to the first record of a table.(I assume you have a list/table and the list/table has a Date and Time column.)

     

    At this time, user B only needs to judge the difference between the time of the record/Item and the current time.

    If the time difference is greater than 5 minutes, it means that user A has closed the browser.

     

    Best Regards,
    Wearsky
    If my post helps, then please consider Accept it as the solution to help others. Thanks.

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,743 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,079 Most Valuable Professional

Leaderboard
Loading started
Loading started