cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Creating a 'Page Review' reminder for SharePoint Site Pages

Hi community!

 

Is there a way of leveraging Power Automate to create a full process which manages SharePoint Site Page reviews? (As briefly discussed in Planning intranet governance - SharePoint in Microsoft 365 | Microsoft Learn under the 'Content review' heading.)

 

Process steps as we see them are:

  1. Something which drives a constantly refreshing 'review date' value in the Site Page Library based on the creation date to begin with, and then subseqent review activities. Perhaps 6 months after either of those events.
  2. Something which sends a reminder (email or 'Approval', or both) to a page owner defined in the Site Page Library, when the review date value is reached.
  3. Something which then responds to the review activity to then move along the 'review date' value by another 6 months.
  4. And all whilst ignoring News Posts in the Site Page Library, which I believe is done by looking for... 
    (PromotedState eq 0)​

 

It's one of those processes which must be required by most large organisations, or really anyone with an Intranet like solution. And I'm surprised there isn't an 'out of the box' solution offered by Microsoft, like for Site Page Approvals.

 

Thanks so much for your support!

1 ACCEPTED SOLUTION

Accepted Solutions

Thanks for your advice on this @Expiscornovus

 

After your very helpful foundations I spent quite a bit of time progressing the idea of an Approval focused approach, and now believe we have a pretty robust solution!

 

At the high-level, we are utilising the Site Pages library within the site, plus a new List which provides both a data store for the automation as well as a useful activity/audit log for the people interested in the process (the Internal Comms team in our instance). Then within Power Automate we have a 'Start' Flow, which is scheduled to run once a day, looking for pages within the Site Pages library which have a Review Date matching today's date. And 3 follow-up/completion Flows that look for the 3 possible responses to the Approval created by the 'Start' Flow, which update the page properties and audit List, and in one of those 3 Flows it also sends an email to the Internal Comms team to flag that a page is no longer required.

 

Here are some screenshots providing more detail for anyone interested...

--

The Site Pages libraryThe Site Pages library

--

 

The Review Date column settingsThe Review Date column settings

--

 

The List within the SiteThe List within the Site

--

 

The 'Start' content review process Flow (1 of 3)The 'Start' content review process Flow (1 of 3)

 

The 'Start' content review process Flow (2 of 3)The 'Start' content review process Flow (2 of 3)

 

The 'Start' content review process Flow (3 of 3)The 'Start' content review process Flow (3 of 3)

--

 

An Approval response Flow "Changes made" (1 of 3)An Approval response Flow "Changes made" (1 of 3)

 

An Approval response Flow "Change made" (2 of 3)An Approval response Flow "Change made" (2 of 3)

 

An Approval response Flow "Changes made" (3 of 3)An Approval response Flow "Changes made" (3 of 3)

--

 

An Approval response Flow "No changes made" (1 of 3)An Approval response Flow "No changes made" (1 of 3)

 

An Approval response Flow "No changes made" (2 of 3)An Approval response Flow "No changes made" (2 of 3)

 

An Approval response Flow "No changes made" (3 of 3)An Approval response Flow "No changes made" (3 of 3)

--

 

An Approval response Flow "Page no longer required" (1 of 4)An Approval response Flow "Page no longer required" (1 of 4)

 

An Approval response Flow "Page no longer required" (2 of 4)An Approval response Flow "Page no longer required" (2 of 4)

 

An Approval response Flow "Page no longer required" (3 of 4)An Approval response Flow "Page no longer required" (3 of 4)

 

An Approval response Flow "Page no longer required" (4 of 4)An Approval response Flow "Page no longer required" (4 of 4)

--

 

Some likely areas for improvement are:

  • Make the trigger for the Approval responses more unique, to ensure they aren't unecessarily triggered by other Approvals which are given the same custom responses in the future. (It won't break the process if this happened though, it would just fail to find a matching ApprovalID within the List.)
  • Tweak the wording in both the Approval and the email (for "page no longer required") and perhaps include more dynamic content to make them more useful.
  • Introduce a reminder Flow which looks at items in the List which have been "Pending" for longer than 7 days (or something like that), to help reduce the risk of Owners forgetting they need to do something.

Otherwise I think this is what we were after and I suspect numerous other organisations might benefit from this as well!

 

View solution in original post

21 REPLIES 21
Expiscornovus
Most Valuable Professional
Most Valuable Professional

Hi @Paul_Bird,

 

Yes, it should be possible to setup something like that.

 

I would suggest to start adding that review date column to the site pages libraries. This way you can use that field in your scheduled review flows. In your flows you can compare todays date with that review date. Let us know if you need any additional help with the flow configuration.

 

 



Happy to help out! 🙂

Interested in more #PowerAutomate #SharePointOnline or #MicrosoftCopilotStudio content?
Visit my blog, Subscribe to my YouTube channel or Follow me on Twitter


Hi @Expiscornovus, thanks for the speedy response!

Makes sense, and just done... 

Paul_Bird_0-1681383733622.png

 

Any thoughts on populating the 'ReviewDate' column? I could go with a calculated value, but that only works that one time, right? It doesn't work well for ongoing, continuous review activities.

 

Expiscornovus
Most Valuable Professional
Most Valuable Professional

Hi @Paul_Bird,

 

For ongoing review activities you could use that review date + number of days approach. After the review has been completed you can update the file properties and calculate/update the new review date within the flow. You could for example use an addDays function in an expression for this.



Happy to help out! 🙂

Interested in more #PowerAutomate #SharePointOnline or #MicrosoftCopilotStudio content?
Visit my blog, Subscribe to my YouTube channel or Follow me on Twitter


Thanks for the continued support. This makes sense I think!

 

If it helps with context and for anyone else doing this, I've put some more thought into the 'Review Date' column configuration within SharePoint and have carried out the following:

  • Made it require a value.
  • Set a default, calculated value to "=TODAY()+180".
  • And set column validation to "=AND([Review Date]>TODAY(),[Review Date]<TODAY()+181)" in the library settings formula view. (Which shows as "=AND(ReviewDate&gt;TODAY(),ReviewDate&lt;TODAY()+181)" in the list column editing view.)

I believe this a good place to start as it ensures the Intranet content review process has a value to work with, ensures it doesn't add an extra step for users creating a new Site Page as it automatically populates it from the start, and ensures that future values cannot be greater than 180 days from now.

 

Paul_Bird_0-1681394875876.png

Paul_Bird_1-1681394899577.png

 

So, now that we have a property to use against each item/Site Page within the Site Page library, would you be able to assist in setting up the start of the Flow? 🙏

 

Expiscornovus
Most Valuable Professional
Most Valuable Professional

Hi @Paul_Bird,

 

Below is an example Recurrence flow.

 

1. A Filter Query in a Get files (properties only) which checks if the ReviewDate value is less than or equal to (le) today (utcNow)

ReviewDate le '@{utcNow()}'

 

2. An expression which uses the ReviewDate value of the current item and adds 180 days via the AddDays function. That expression is used in the Update file properties action.

addDays(item()['ReviewDate'], 180)

 

reviewdates_all.png

 

Btw, I used this setup for the ReviewDate column

 

reviewpages.png



Happy to help out! 🙂

Interested in more #PowerAutomate #SharePointOnline or #MicrosoftCopilotStudio content?
Visit my blog, Subscribe to my YouTube channel or Follow me on Twitter


Superb! Thank you very much for getting me started on the flow 🙌

 

I've been playing around and this does indeed do the trick! (To allow me to test it, I temporarily ditched the column validation on 'Review Date' so that I could create some test pages with today's date. I'll add that back in once I know the flow is running perfectly.)

 

I've subsequently tried to swap this to an 'Approval' action within the flow so that we can put all of this activity through the great Approvals app in Teams. I've clearly done this wrong as it seems to now be waiting on each approval step to complete before it (the flow) moves on to the next page in the Site Pages library.

 

Here's what I've created...

 

Paul_Bird_3-1681405484011.png

Paul_Bird_2-1681405412101.png

Paul_Bird_4-1681405598990.png

You can see how the 'Start and wait for an approval' step along with the 'Switch' steps, are all nested within the 'Apply to each' step. Presumably this is where I'm going wrong, but I'm not sure how I can do this in alternative fashion?

 

Thanks for your help again!

 

In case it's helpful - I ran the analysis capability and it provided this helpful process diagram of how it currently works...

Paul_Bird_0-1681406593150.png

 

Expiscornovus
Most Valuable Professional
Most Valuable Professional

Hi @Paul_Bird,

 

Yes, adding the start and wait for the approval makes the design totally different. My suggestion was for the notification/reminder stuff. Adding that waiting stepping will cause this behaviour.

 

In this scenario/with this requirement it might be better to have a parent flow which checks which files are due for review and trigger a child approval/reminder flow for the ones which are due.



Happy to help out! 🙂

Interested in more #PowerAutomate #SharePointOnline or #MicrosoftCopilotStudio content?
Visit my blog, Subscribe to my YouTube channel or Follow me on Twitter


Thanks for your advice on this @Expiscornovus

 

After your very helpful foundations I spent quite a bit of time progressing the idea of an Approval focused approach, and now believe we have a pretty robust solution!

 

At the high-level, we are utilising the Site Pages library within the site, plus a new List which provides both a data store for the automation as well as a useful activity/audit log for the people interested in the process (the Internal Comms team in our instance). Then within Power Automate we have a 'Start' Flow, which is scheduled to run once a day, looking for pages within the Site Pages library which have a Review Date matching today's date. And 3 follow-up/completion Flows that look for the 3 possible responses to the Approval created by the 'Start' Flow, which update the page properties and audit List, and in one of those 3 Flows it also sends an email to the Internal Comms team to flag that a page is no longer required.

 

Here are some screenshots providing more detail for anyone interested...

--

The Site Pages libraryThe Site Pages library

--

 

The Review Date column settingsThe Review Date column settings

--

 

The List within the SiteThe List within the Site

--

 

The 'Start' content review process Flow (1 of 3)The 'Start' content review process Flow (1 of 3)

 

The 'Start' content review process Flow (2 of 3)The 'Start' content review process Flow (2 of 3)

 

The 'Start' content review process Flow (3 of 3)The 'Start' content review process Flow (3 of 3)

--

 

An Approval response Flow "Changes made" (1 of 3)An Approval response Flow "Changes made" (1 of 3)

 

An Approval response Flow "Change made" (2 of 3)An Approval response Flow "Change made" (2 of 3)

 

An Approval response Flow "Changes made" (3 of 3)An Approval response Flow "Changes made" (3 of 3)

--

 

An Approval response Flow "No changes made" (1 of 3)An Approval response Flow "No changes made" (1 of 3)

 

An Approval response Flow "No changes made" (2 of 3)An Approval response Flow "No changes made" (2 of 3)

 

An Approval response Flow "No changes made" (3 of 3)An Approval response Flow "No changes made" (3 of 3)

--

 

An Approval response Flow "Page no longer required" (1 of 4)An Approval response Flow "Page no longer required" (1 of 4)

 

An Approval response Flow "Page no longer required" (2 of 4)An Approval response Flow "Page no longer required" (2 of 4)

 

An Approval response Flow "Page no longer required" (3 of 4)An Approval response Flow "Page no longer required" (3 of 4)

 

An Approval response Flow "Page no longer required" (4 of 4)An Approval response Flow "Page no longer required" (4 of 4)

--

 

Some likely areas for improvement are:

  • Make the trigger for the Approval responses more unique, to ensure they aren't unecessarily triggered by other Approvals which are given the same custom responses in the future. (It won't break the process if this happened though, it would just fail to find a matching ApprovalID within the List.)
  • Tweak the wording in both the Approval and the email (for "page no longer required") and perhaps include more dynamic content to make them more useful.
  • Introduce a reminder Flow which looks at items in the List which have been "Pending" for longer than 7 days (or something like that), to help reduce the risk of Owners forgetting they need to do something.

Otherwise I think this is what we were after and I suspect numerous other organisations might benefit from this as well!

 

Hello @Paul_Bird, can you break out how you setup your columns for your audit page? (How did you define the Approval ID?)

Hi @CraigVickery - Of course.

 

The List I created within our new Intranet site (to provide an audit trail) consists of the following columns...

Paul_Bird_0-1683713791067.png

Paul_Bird_1-1683713880266.png

The ApprovalID value is pulled from the 'Approvers' output (after the Approval has been created within the flow), with it specifically using the 'Approval ID' to populate that column. It's a value which is automatically created behind the scenes and looks like it's unique to every Approval created, making it ideal for recording updates made against a single Approval workflow.

I hope that helps?

A little update on the solution I detailed above now that we're seeing it tested within our org.

 

In the 'Start' flow, within the 'Get files (properties only)' step, I've tweaked the Filter Query to avoid it triggering multiple times on the same Page if it's not reviewed before the next scheduled run.

 

Originally it was...

ReviewDate le '@{utcNow ()}' and PromotedState eq '0' 

 

And now it's:

ReviewDate eq '@{utcNow ('yyyy-MM-dd')}' and PromotedState eq '0'

 

Paul_Bird_0-1684407413818.png

 

If you only changed the le (less than or equal to) expression to eq (equal to), it won't work, because utcNow is looking for a time along with a date, and the ReviewDate value for each Page has a time of "00:00:00", so by including yyyy-MM-dd in the utcNow variable you're only looking for a date value.

Hello @Paul_Bird, How do you get all your site pages into the list? Is this a manual registration process, or is it possible to get it automated?

Hi @EspenLund ! The Flow uses the "Site Pages" Page library/List which already exists in every site (or at least I think it's there in every site by default). That way the Flow is always looking at the latest information 👍

Thanks Paul for providing this tutorial, this is excellent information,

 

I have a question for anyone who may know the answer, when i run any of the approval response options, it fails with status code 404.

 

It also seems to be trying to apply to all pages on the site, not just the newly modified.

 

 

matthewcarter_0-1696915925564.png

 

matthewcarter_1-1696915947743.png

Raw Output

 
    "statusCode"404,
    "headers": {
        "Cache-Control""max-age=0, private",
        "Vary""Origin",
        "X-NetworkStatistics""0,525568,0,0,39587,0,36394",
        "X-SharePointHealthScore""3",
        "X-MS-SPConnector""1",
        "X-SP-SERVERSTATE""ReadOnly=0",
        "DATASERVICEVERSION""3.0",
        "SPClientServiceRequestDuration""28",
        "SPRequestDuration""29",
        "X-DataBoundary""NONE",
        "X-1DSCollectorUrl""https://mobile.events.data.microsoft.com/OneCollector/1.0/",
        "X-AriaCollectorURL""https://browser.pipe.aria.microsoft.com/Collector/3.0/",
        "SPRequestGuid""XXXX",
        "request-id""XXXX",
        "MS-CV""5kGYS+weSECB8UC9M3VyxA.0",
        "Strict-Transport-Security""max-age=31536000",
        "X-Frame-Options""SAMEORIGIN",
        "Content-Security-Policy""frame-ancestors 'self' teams.microsoft.com *.teams.microsoft.com *.skype.com *.teams.microsoft.us local.teams.office.com *.powerapps.com *.yammer.com *.officeapps.live.com *.office.com *.microsoft365.com *.stream.azure-test.net *.microsoftstream.com *.dynamics.com *.microsoft.com onedrive.live.com *.onedrive.live.com securebroker.sharepointonline.com;",
        "MicrosoftSharePointTeamServices""16.0.0.24120",
        "X-Content-Type-Options""nosniff",
        "X-MS-InvokeApp""1; RequireReadOnly",
        "P3P""CP=\"ALL IND DSP COR ADM CONo CUR CUSo IVAo IVDo PSA PSD TAI TELo OUR SAMo CNT COM INT NAV ONL PHY PRE PUR UNI\"",
        "X-AspNet-Version""4.0.30319",
        "X-Powered-By""ASP.NET",
        "Timing-Allow-Origin""*",
        "x-ms-apihub-cached-response""true",
        "x-ms-apihub-obo""false",
        "Date""Tue, 10 Oct 2023 05:13:46 GMT",
        "Content-Length""179",
        "Content-Type""application/json",
        "Expires""Mon, 25 Sep 2023 05:13:46 GMT",
        "Last-Modified""Tue, 10 Oct 2023 05:13:46 GMT"
    },
    "body": {
        "status"404,
        "message""Could not find list item.\r\nclientRequestId: XXXX-40bd337572c4\r\nserviceRequestId: XXXX"
    }
}

 

update, i got the error fixed by selecting approval model type, rather then ID, and the flow successfuly runs. however the fields now arent being updated in the audit list page.

matthewcarter_3-1696920635780.png

 

Hi @matthewcarter ! Glad that this has been useful.

 

What's the error details you get now that you've resolved the initial issue? It could be a permissions issue rather than the design of your Flow. I encountered that at one point. Make sure the account/identity the Flow is using has the necessary permissions to update the Audit List page?

matthewcarter
Frequent Visitor

Hi Paul, i ended up tweaking this a little differently however the foundation of how i have done is from this post, so thanks for the tutorial provided.

i have removed the 3 separate flows for different responses and combined into 1 flow with conditions.

I also created an add to time field, so rather then 'adddays' and entering a number in the formular, i can get the current date, and add to time which lets me select either days, months, or years.

matthewcarter_0-1700437054703.png

 

matthewcarter_1-1700437099641.png

 



 

Smart! When I get some time, I'll take a look at your approach and see if I can improve ours! 🤜

Helpful resources

Announcements

Community will be READ ONLY July 16th, 5p PDT -July 22nd

Dear Community Members,   We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd.   During this period, members will not be able to Kudo, Comment, or Reply to any posts.   On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities.   What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!

Summer of Solutions | Week 4 Results | Winners will be posted on July 24th

We are excited to announce the Summer of Solutions Challenge!    This challenge is kicking off on Monday, June 17th and will run for (4) weeks.  The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions to as many questions as you can. Answers can be provided in all the communities.    Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”)   - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024   Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods.  You must enter into each weekly Entry Period separately.   How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different.    Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers.  At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing.  Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner.  A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random.  Individuals will be contacted before the announcement with the opportunity to claim or deny the prize.  Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners.   Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event.   ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE**   Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Community MembersNumber SolutionsSuper UsersNumber Solutions Deenuji 9 @NathanAlvares24  17 @Anil_g  7 @ManishSolanki  13 @eetuRobo  5 @David_MA  10 @VishnuReddy1997  5 @SpongYe  9JhonatanOB19932 (tie) @Nived_Nambiar  8 @maltie  2 (tie)   @PA-Noob  2 (tie)   @LukeMcG  2 (tie)   @tgut03  2 (tie)       Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 2: Community MembersSolutionsSuper UsersSolutionsPower Automate  @Deenuji  12@ManishSolanki 19 @Anil_g  10 @NathanAlvares24  17 @VishnuReddy1997  6 @Expiscornovus  10 @Tjan  5 @Nived_Nambiar  10 @eetuRobo  3 @SudeepGhatakNZ 8     Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji32ManishSolanki55VishnuReddy199724NathanAlvares2444Anil_g22SudeepGhatakNZ40eetuRobo18Nived_Nambiar28Tjan8David_MA22   Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 4:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji11FLMike31Sayan11ManishSolanki16VishnuReddy199710creativeopinion14Akshansh-Sharma3SudeepGhatakNZ7claudiovc2CFernandes5 misc2Nived_Nambiar5 Usernametwice232rzaneti5 eetuRobo2   Anil_g2   SharonS2  

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners.    The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights.    Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.    

Updates to Transitions in the Power Platform Communities

We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for.  We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer.   Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together.   Here's to new beginnings and endless possibilities!   If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport.   To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages