cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Tea11
Regular Visitor

How to lock file for editing while the file is in an active flow

Hello Everyone,

 

I would like to lock files for editing based on metadata using a workflow in power automate.

 

For example: when the workflow is running by selecting a file, the "status" metadata on that file changes from "new" to " in-progress" and could not be edited by any visitors or members.

 

Is there any OOTB feature in power automate to lock files for editing until the workflow is not finished or a specific metadata value is set?

 

Thank you very much for your support.

 

Regards,

AK

1 ACCEPTED SOLUTION

Accepted Solutions
v-bofeng-msft
Community Support
Community Support

Hi @Tea11 :

Could you tell me:

Where are your files stored?If it is saved in a SharePoint library, then you can use the "Check Out File" action check the file out to keep others from making changes at the same time.

Once you're done making changes to the file, check it in from the library to upload your changes. 

I think these links will help you a lot:

Check out or check in files in a document library

Check in file

Check out file

Best Regards,

Bof

View solution in original post

2 REPLIES 2
v-bofeng-msft
Community Support
Community Support

Hi @Tea11 :

Could you tell me:

Where are your files stored?If it is saved in a SharePoint library, then you can use the "Check Out File" action check the file out to keep others from making changes at the same time.

Once you're done making changes to the file, check it in from the library to upload your changes. 

I think these links will help you a lot:

Check out or check in files in a document library

Check in file

Check out file

Best Regards,

Bof

View solution in original post

Tea11
Regular Visitor

Thank you very much for your reply. The files are stored in the document library.

 

That could be an alternative solution to locking and unlocking files.

Thank you very much for your support.

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (3,290)