Trigger for News

%3CLINGO-SUB%20id%3D%22lingo-sub-439828%22%20slang%3D%22en-US%22%3ETrigger%20for%20News%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-439828%22%20slang%3D%22en-US%22%3E%3CP%3EHow%20can%20I%20trigger%20a%20workflow%20whenever%20a%20News%20page%20gets%20published%2C%20on%20a%20hub%20site%20or%20any%20of%20its%20related%20sites%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-439828%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Flow%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-440058%22%20slang%3D%22en-US%22%3ERe%3A%20Trigger%20for%20News%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-440058%22%20slang%3D%22en-US%22%3EI%20don%E2%80%99t%20*think*%20there%E2%80%99s%20a%20way%20to%20do%20this%2C%20but%20it%20sounds%20like%20a%20great%20UserVoice%20suggestion.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-447521%22%20slang%3D%22en-US%22%3ERe%3A%20Trigger%20for%20News%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-447521%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F83%22%20target%3D%22_blank%22%3E%40Marc%20Anderson%3C%2FA%3E%26nbsp%3Bthanks%20for%20the%20reply.%20Alternately%2C%20would%20there%20be%20a%20way%20to%20run%20a%20flow%20on%20a%20schedule%20to%20retrieve%20all%20the%20news%20posted%20in%20a%20given%20hub%20in%20the%20past%2024%20hours%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-449487%22%20slang%3D%22en-US%22%3ERe%3A%20Trigger%20for%20News%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-449487%22%20slang%3D%22en-US%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F29417%22%20target%3D%22_blank%22%3E%40Christophe%20Humbert%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20definitely%20run%20a%20Flow%20on%20a%20schedule%20-%20see%20%22Recurrence%22.%20I%20don't%20believe%20there%20are%20any%20Actions%20that%20let%20you%20identify%20News%20but%20you%20can%20use%20the%20%22List%20folder%22%20action%20against%20your%20%22Site%20Pages%22%20folder%20to%20identify%20recently%20updated%20pages%20-%20see%20%22Filter%20Array%22.%20It's%20far%20from%20perfect%20but%20might%20be%20an%20reasonable%20interim%20solution.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20hope%20this%20helps.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENorm%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-449877%22%20slang%3D%22en-US%22%3ERe%3A%20Trigger%20for%20News%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-449877%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F111382%22%20target%3D%22_blank%22%3E%40Norman%20Young%3C%2FA%3E%26nbsp%3BThanks%2C%20this%20is%20definitely%20going%20in%20the%20right%20direction.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENow%20the%20remaining%20issue%20is%20that%20on%20a%20hub%2C%20news%20come%20from%20multiple%20%22Site%20Pages%22%20libraries%2C%20not%20just%20one.%20I%20would%20need%20to%20identify%20all%20those%20sources.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-450097%22%20slang%3D%22en-US%22%3ERe%3A%20Trigger%20for%20News%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-450097%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F29417%22%20target%3D%22_blank%22%3E%40Christophe%20Humbert%3C%2FA%3E%2C%20there%20is%20nothing%20out%20of%20the%20box%20that%20lists%20associated%20Hub%20sites.%20But%20a%20static%20List%20can%20be%20created%20to%20store%20the%20Hub%20site%20definition%20and%20that%20in%20turn%20used%20in%20Flow%20to%20inventory%20all%20information%20on%20modified%20Site%20Pages.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20did%20a%20quick%20test%20and%20it%20seems%20reasonable.%20See%20image%20below.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F108618i7C6767AD39A8FCAB%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22Capture.PNG%22%20title%3D%22Capture.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%22Site%20Listing%22%20is%20my%20list%20of%20sites%20associated%20to%20my%20Hub.%20More%20work%20is%20required%20to%20send%20a%20single%20email%20with%20the%20%22Modified%20Site%20Pages%22%20variable%20content%20in%20the%20body%20but%20it's%20the%20weekend%20and%20my%20beer%20fridge%20is%20calling.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20hope%20this%20helps.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENorm%3C%2FP%3E%3C%2FLINGO-BODY%3E
Frequent Contributor

How can I trigger a workflow whenever a News page gets published, on a hub site or any of its related sites?

5 Replies
I don’t *think* there’s a way to do this, but it sounds like a great UserVoice suggestion.

@Marc Anderson thanks for the reply. Alternately, would there be a way to run a flow on a schedule to retrieve all the news posted in a given hub in the past 24 hours?

Hello @Christophe Humbert,

 

You can definitely run a Flow on a schedule - see "Recurrence". I don't believe there are any Actions that let you identify News but you can use the "List folder" action against your "Site Pages" folder to identify recently updated pages - see "Filter Array". It's far from perfect but might be an reasonable interim solution. 

 

I hope this helps.

 

Norm

@Norman Young Thanks, this is definitely going in the right direction.

 

Now the remaining issue is that on a hub, news come from multiple "Site Pages" libraries, not just one. I would need to identify all those sources.

@Christophe Humbert, there is nothing out of the box that lists associated Hub sites. But a static List can be created to store the Hub site definition and that in turn used in Flow to inventory all information on modified Site Pages.

 

I did a quick test and it seems reasonable. See image below.

Capture.PNG

 

"Site Listing" is my list of sites associated to my Hub. More work is required to send a single email with the "Modified Site Pages" variable content in the body but it's the weekend and my beer fridge is calling.

 

I hope this helps.

 

Norm