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 / Issues updating a lock...
Power Automate
Answered

Issues updating a locked file property using SharePoint HTTPS Request

(0) ShareShare
ReportReport
Posted on by 14
Hello!
 
I'm working on a Power Automate flow that will update properties of a file in a doc library, even if a file is locked. I'm following the steps from Dennis, a Microsoft MVP : Update a Locked File property – Expiscornovus
 
I applied the same logic to my document approval flow,  but I get an error when trying to save and publish my flow: The input parameter(s) of action 'Send_an_HTTP_request_to_SharePoint_-_Update_File_Properties_Approved' contain an invalid reference to 'Send_an_HTTP_request_to_SharePoint_-_sharedLockId'. Correct to include a valid reference to 'Send_an_HTTP_request_to_SharePoint_-_sharedLockId' for the input parameter(s) of action 'Send_an_HTTP_request_to_SharePoint_-_Update_File_Properties_Approved'.
 
 
Below are screenshots from my flow. I for the life of me, can't figure out why it errors out. Any help provided greatly appreciated. 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
This is the equation for the sharedlockid:
Categories:
I have the same question (0)
  • Verified answer
    tom_riha Profile Picture
    10,187 Most Valuable Professional on at
    Hello,
     
    it looks you have one extra space in the HTTP request name, there're two spaces before the '- sharedLockId'. Remove the space or add another _ in the expression to keep the name and reference aligned.
     
     
    ----------------------------------------------------------------------------------
    Did the answer solve your problem? Please click "Does this answer your question" and give it a like to help others in the community find the solution too!
     
    You can find more of my solution on the blog: https://tomriha.com!
  • tyler_05 Profile Picture
    14 on at
    Thank you so much. I even looked at it for well over one hour in total looking for syntax things like that. I can't believe I missed that. Thanks again!.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 796

#2
Valantis Profile Picture

Valantis 568

#3
Haque Profile Picture

Haque 538

Last 30 days Overall leaderboard