Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

How to trigger locking a document for editing when column dropdown type changes

(0) ShareShare
ReportReport
Posted on by 19

Hello, I have a SharePoint column called Approval Status with drop down options.

I would like to automatically lock the document for editing when a specific option is selected "Approved", and automatically unlock the document  when the status changes to any other drop down option.

 

Is there any way to trigger a lock when a specific choice is selected?

 

Thank you

  • MMORGAN Profile Picture
    19 on at
    Re: How to trigger locking a document for editing when column dropdown type changes

    Hello, we will only need to deploy to one site.

     

    Thank you

  • MMORGAN Profile Picture
    19 on at
    Re: How to trigger locking a document for editing when column dropdown type changes

    @v-bofeng-msft 

    We have tried your reference but are getting an error on our end:

    MMORGAN_0-1679935091173.png

    Error: 
    InvalidTemplate. Unable to process template language expressions in action 'Get_changes_for_an_item_or_a_file_(properties_only)' inputs at line '0' and column '0': 'The template language function 'int' was invoked with a parameter that is not valid. The value cannot be converted to the target type.'.

     

    Any assistance you can provide, please? 

  • Verified answer
    MMORGAN Profile Picture
    19 on at
    Re: How to trigger locking a document for editing when column dropdown type changes

    Thank you! I haven't been able to test yet, but this is exactly what I was looking for. I really appreciate your help. 

  • v-bofeng-msft Profile Picture
    on at
    Re: How to trigger locking a document for editing when column dropdown type changes

    Hi @MMORGAN ,

     

    I've made a test for your reference:

    vbofengmsft_1-1678845437376.png

    Best Regards,

    Bof

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1