
Announcements
I've been given a fun task within my team on the back of 365 Message Centre messages being synced to Planner and am looking for help with a solution.
Currently my team has a Plan which is for everyone in Platforms, and there is a bucket for Messaging, SharePoint and InTune (for the respective support teams dealing with exchange/teams, SPO & OneDrive and client technologies). Ultimately our goal is to be able to automatically triage the message centre messages that get added to the "to do" bucket (the default one) on Planner, going by the tag at the start of the title (e.g. "[Microsoft Intune]").
I know that a switch case can't handle a "contains" function, and there's far too many conditions to try to use nested if loops (i even tried it using just 3 conditions but the flow fails after running for 30+ mins).
Below i've included a screenshot of the overview of my flow, there's currently 1 switch for a condition that i'm testing to see if i can get it to do anything at all, currently the flow runs successfully but does not move any items. If I can get that one condition working my plan is to add the rest in the same way.
Looking for any suggestions/hints/tips that might help me get something that works up and running. I've scoured these forums already and have only found the limitations of the switch function, nothing to say what I could do instead.
Hello @kcunninghamsky ,
there's an action 'Filter array' in Power Automate which you can use instead of the 'Condition' (since you're just filtering an array). You'll input an array into the action, e.g. output of 'List tasks' and define a filter, and 'Filter array' supports also filter 'starts with'.
If I understand correctly, you want to process only actions from a specific bucket that begin with a specific string. That's one 'Filter array' to filter the bucket, and 3 additional 'Filter array's to filter the prefixes from the output of the 1st 'Filter array'. Here's a draft of the flow for a single prefix.