web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Publishing a modern Sh...
Power Automate
Unanswered

Publishing a modern SharePoint SitePage

(0) ShareShare
ReportReport
Posted on by 329

Hello everybody,

 

I am in the middle of building a workflow that first copies a SharePoint SitePage, and should eventually publish this modern SharePoint SitePage on the new site.

Inspired by the following article http://www.sites.se/2018/08/sharepoint-modern-pages-microsoft-flow/ (step 7) I was trying to include an action in my Flow that does exactly that. Send an HTTP request to SharePoint to publish a SharePoint SitePage.

 

I came to the conclusion that the action succeeds, but the SitePage still remains in Approval Status: "Pending". 
The desired outcome is not achieved. The response I am receiving is Publish equals false. But why?

Am I using the wrong method?

 

Below I have attached screenshots of both the input and output of this action.

 

INPUTS.png

 

OUTPUTS.png

 

Could anyone help me clarify this behavior and outcome?

 

Thanks a lot!

Joost

Categories:
I have the same question (0)
  • RobElliott Profile Picture
    10,313 Super User 2025 Season 2 on at
    Re: Publishing a modern SharePoint SitePage

    @jvdlinden not entirely sure but you might need to update the PromotedState column to 2.

    Rob
    Los Gallardos
    If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.

  • jvdlinden Profile Picture
    329 on at
    Re: Publishing a modern SharePoint SitePage

    Hi @RobElliott ,

     

    And exactly that is what I am not able to accomplish. I include the metadata "PromotedState": 2

    Initially I was struggling to change the Approval Status, that has been fixed now (review screenshot below).
    But the PromotedState thing is suggested here by aMicrosoft Community Support engineer: https://powerusers.microsoft.com/t5/Building-Flows/issue-when-updating-new-page-promoted-state-in-microsoft-flow/td-p/252582

    It runs successfully, but it does not promote the sitepage as a news post.

     

    I was expecting the PromotedState metadata to come over while copying the site page to another site, but apparently that is not how it works...

     

    PromoteNews.png

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard