cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Filtering for text within Outlook event subject that contains brackets

I have built a flow that takes an event from Outlook and creates a planner task that is due 14 days before the event.

I would like to be able to filter the events as only certain events in my calendar require a planner task.

I have put in a filter array that searches for events that start with (M). I think the problem is that the flow expression ignores the brackets around the M.

Any ideas how I can get it to look for the (M) at the start of the event subject?

 
 

 

flow.png

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Super User III
Super User III

Re: Filtering for text within Outlook event subject that contains brackets

Hi @KeithPowell 

 

You are using the wrong action to filter the subject. The trigger only returns set of values not as a collection array.

 

Replace the Filter Array with a simple IF condition

 

image.png

 

Yes I agree it is odd that Filter Array returns null and shows as the step is executed successfully.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog

Power Automate Video Tutorials

View solution in original post

Highlighted
Community Support
Community Support

Re: Filtering for text within Outlook event subject that contains brackets

 

Hi @KeithPowell ,

 

It seems that you only want to judge a single event, you could use Condition directly to judge.

250.PNG

The Filter array is used to filter the data whose output value is a collection, like this:

https://docs.microsoft.com/en-gb/power-automate/data-operations#use-the-filter-array-action

251.PNG

Hope that makes sense.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Highlighted
Super User III
Super User III

Re: Filtering for text within Outlook event subject that contains brackets

Hi @KeithPowell 

 

You are using the wrong action to filter the subject. The trigger only returns set of values not as a collection array.

 

Replace the Filter Array with a simple IF condition

 

image.png

 

Yes I agree it is odd that Filter Array returns null and shows as the step is executed successfully.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog

Power Automate Video Tutorials

View solution in original post

Highlighted
Community Support
Community Support

Re: Filtering for text within Outlook event subject that contains brackets

 

Hi @KeithPowell ,

 

It seems that you only want to judge a single event, you could use Condition directly to judge.

250.PNG

The Filter array is used to filter the data whose output value is a collection, like this:

https://docs.microsoft.com/en-gb/power-automate/data-operations#use-the-filter-array-action

251.PNG

Hope that makes sense.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (4,518)