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:
(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!
Solved! Go to Solution.
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...
--
--
--
--
--
--
--
--
Some likely areas for improvement are:
Otherwise I think this is what we were after and I suspect numerous other organisations might benefit from this as well!
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.
Hi @Expiscornovus, thanks for the speedy response!
Makes sense, and just done...
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.
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.
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:
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.
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? 🙏
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)
Btw, I used this setup for the ReviewDate column
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...
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...
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.
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...
--
--
--
--
--
--
--
--
Some likely areas for improvement are:
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...
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'
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.
Raw Output
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.
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?
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.
Smart! When I get some time, I'll take a look at your approach and see if I can improve ours! 🤜
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!
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
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.
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