Skip to main content
Community site session details

Community site session details

Session Id : VtOCat9CewIhLaSXKK+kS1
Power Automate - Building Flows
Answered

Error message in SharePoint check out file output

Like (0) ShareShare
ReportReport
Posted on 1 Nov 2021 16:17:45 by 1,934 Moderator

The sharePoint check out file connector fails if the file is locked. I've been trying to use the Send an HTTP request to SharePoint connector to get SharePoint to tell me the name of the user who has locked the file.

 

https://xxxxx.sharepoint.com/sites/xxx/xx/libraryName/items(@{triggerBody()?['entity']?['ID']})/File/LockedByUser

 

This is failing with a Page not found error. I know I have something wrong in the line above. Please help.

 

Thanks,

Anne

 

  • CFernandes Profile Picture
    8,295 Most Valuable Professional on 01 Nov 2021 at 17:00:07
    Re: Error message in SharePoint check out file output

    Hey @annetoal I am that my inputs helped 😊

  • annetoal Profile Picture
    1,934 Moderator on 01 Nov 2021 at 16:44:11
    Re: Error message in SharePoint check out file output

    Worked perfectly. Thank you so much.

     

    Anne

  • Verified answer
    CFernandes Profile Picture
    8,295 Most Valuable Professional on 01 Nov 2021 at 16:38:05
    Re: Error message in SharePoint check out file output

    Hey @annetoal 

     

    Please try following the blog -https://www.thetindog.com/dynamics-as-we-go/identifying-sharepoint-file-locks-with-power-automate 

     

    _api/web/GetFolderByServerRelativeURL('⁠SharepointPath⁠')/files/getbyurl('⁠SharepointPath⁠/SharepointFilename⁠')/LockedByUser

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

    P.S. take a look at my blog here and like & subscribe to my YouTube Channel 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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

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!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete