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 Automate / Lock and Unlock excel ...
Power Automate
Unanswered

Lock and Unlock excel file

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Good Day Folks,

 

I have a task to lock and uclock the file for everyone by request from SharePoint.

How can I realize it with PowerAutomate?

Categories:
  • lbendlin Profile Picture
    8,726 Super User 2026 Season 1 on at

    I assume you mean Check Out and Check In.

     

    Here is the REST API documentation: Working with folders and files with REST | Microsoft Learn

    The following example shows how to check out a file.

    HTTPCopy
     
    POST https://{site_url}/_api/web/GetFileByServerRelativeUrl('/Folder Name/{file_name}')/CheckOut(),
    Authorization: "Bearer " + accessToken
    X-RequestDigest: "{form_digest_value}"

    The following example shows how to check in a file.

    HTTPCopy
     
    POST https://{site_url}/_api/web/GetFileByServerRelativeUrl('/Folder Name/{file_name}')/CheckIn(comment='Comment',checkintype=0)
    Authorization: "Bearer " + accessToken
    X-RequestDigest: "{form_digest_value}"

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 Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 425

#2
11manish Profile Picture

11manish 323 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard