cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ApolloC
Level: Power Up

Trigger flow when SharePoint page is published

I need to trigger a flow (send an email) when a SharePoint page is published.  I currently have it configured (in development) to trigger on file creation, which means if it autosaves with no content, the email is sent out.  I need it to wait until the creator finishes the page (published).  Any idea on how to accomplish this?  Thanks in advance!

6 REPLIES 6
Community Support Team
Community Support Team

Re: Trigger flow when SharePoint page is published

Hi @ApolloC,

 

Could you show a bit more about the SharePoint Page? The Page in Site Pages or the Page of Word document in SharePoint Library?

Further, could you please share a screenshot of your flow’s configuration?

For the Page in Site Pages, there is no trigger or action about “When a SharePoint Page is published” in Microsoft Flow recently. Besides, there is no way to check if the SharePoint Page has published.

 

For the Page of Word document in SharePoint Library, if you create a new document in library by “New” button, it will be saved automatically.

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
ApolloC
Level: Power Up

Re: Trigger flow when SharePoint page is published

Well, I'm using the "News" webapp to create a modern page.  After the auto-save (or save button), the .aspx is added to the Site Pages page library.  If there are images on the page, those are saves to Site Assets --> SitePages at the same time.

 

I don't understand what you're trying to tell me about a "Word document".

 

It looks to be a huge hassle to include images.  The flow is super simple..."When an item is created -> Send an email".  I enter the site and list name for the trigger, and added my email and a few dynamic fields in the action.  I haven't bothered to customize it much yet because it's appearing as if the desired functionality is not yet available.  I've also tried using the "When a file is created in afolder" trigger as well...this one isn't very reliable (often doesn't trigger) and when it does, has the same undesirable result of sending the email after the "auto-save".

Highlighted
Anonymous
Not applicable

Re: Trigger flow when SharePoint page is published

I wanted to do the same thing as you. I wondered if I could do this:

 

@equals(coalesce(triggerBody()?['FirstPublishedDate'], ''), triggerBody()?['Modified'])

 

which compares the FirstPublishedDate to the Modified field, and if they are the same then the page has just been published. However the two field values did not exactly match:

 

Modified                    2017-11-07T12:41:34-08:00
FirstPublishedDate   2017-11-07T12:41:33-08:00

 

Also I think that FirstPublishedDate is only available on news pages, not site pages.

 

So it would be great if there could be a flow to act on publishing a page.

ApolloC
Level: Power Up

Re: Trigger flow when SharePoint page is published

My FirstPublishedDate field is null...so no use to me.

Sofie_D
Level 8

Re: Trigger flow when SharePoint page is published

Did you ever find a solution for this? I need to have a flow run every time a page is published as well.

Lordipswich1
Level: Power Up

Re: Trigger flow when SharePoint page is published

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Users Online
Currently online: 220 members 4,678 guests
Please welcome our newest community members: