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 / How would one unpublis...
Power Automate
Unanswered

How would one unpublish a SharePoint page using Power Automate

(0) ShareShare
ReportReport
Posted on by

I've been looking for a way to unpublish a SharePoint page using Power Automate, but so far, I haven't found any out-of-the-box actions that seem to do the job.

I came across some posts suggesting the /unpublish HTTP request, but in my case, it throws this error:
"Cannot find resource for the request unpublish."

Has anyone successfully automated unpublishing pages via Power Automate? Any insights or workarounds would be greatly appreciated!

#SharePoint #PowerAutomate #Automation #Microsoft365

Categories:
I have the same question (0)
  • RobElliott Profile Picture
    10,473 Super User 2026 Season 1 on at
    Yes this is quite easily do-able. In the image below the news item has been changed from Published (Promoted State = 2) to Unpublished (Promoted State = 0)

     
    I've put the ID of the page into a variable varID.
     
    In your flow add a Send an HTTP Request to SharePoint action with:

    Method: POST
    Uri: _api/Web/Lists/GetByTitle('Site Pages')/Items(@{variables('varID')})

    Headers - accept  - application/json;odata=verbose

    Headers - content-type - application/json;odata=verbose

    Headers - If Match - *
    Headers - X-HTTP-Method - MERGE

    Body - { '__metadata':{'type':'SP.Data.SitePagesItem'},'PromotedState':0 }


     

     

     

    Rob
    Los Gallardos

    Microsoft Power Automate Community Super User.
    Principal Consultant, SharePoint and Power Platform WSP Global (and classic 1967 Morris Traveller driver)

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 484

#2
Valantis Profile Picture

Valantis 477

#3
Haque Profile Picture

Haque 456

Last 30 days Overall leaderboard