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

Create a MS Planner task (avoid duplicates)

Hello,

I'm sure you can help me creating a successful flow. 
I have tried to create a flow that will create MS Planner tasks to my colleagues once and email arrives to a specific e-mail address. 

That part initially works, however I want to optimize it before we take it into use and duplicates have been the worst problem. 
As a new task will be created everytime a response is sent - I have tried to look but couldn't find a proper solution...
snip.JPGsnip1.JPG

 

This flow is my first and I'm sure an experienced user will find this task rather easy. 

All inputs are appreciated!

Best regards,
Sebastian

1 ACCEPTED SOLUTION

Accepted Solutions

Hello @SebastianLylov 

Please, in the left part of the "condition 2" action add the following expression:

empty(body('filter_array'))

and in the right side "is equal to true".

Hope it helps!

Ferran

Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!

View solution in original post

7 REPLIES 7
fchopo
Super User
Super User

Hello @SebastianLylov 

In the "condition 2" you could check whether there is any item in the filter array operation, with something like: length(Body(‘Filter_array’)) is equal to 0 

Hope it helps!

Ferran

 

Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!

@fchopo thank's for taking your time to look at my flow. 
However I'm not sure what you mean - as condition 2 doesn't have a filter array, that one is before and I assume linked with condition 1? (I've attached a photo) - I'm not sure either how I should implement your suggestion, I would prefer a photo of your suggestion (Sorry if I'm being troublesome) 🙂

SebastianLylov_0-1611316808249.png

 

fchopo
Super User
Super User

Hello @SebastianLylov 

Why do use "true" as a condition in "condition 2"? I would check if the filter array output contains items or not.

Regards,

Ferran

Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!

Hey Ferran,

I got some inspiration from this thread. (Solved: Re: Avoid duplicates re: Flow connecting events in... - Power Platform Community (microsoft....)
However I couldn't exactly manage to twist it to my purpose, this is also why I have filter array. 

Hello @SebastianLylov 

Please, in the left part of the "condition 2" action add the following expression:

empty(body('filter_array'))

and in the right side "is equal to true".

Hope it helps!

Ferran

Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!

View solution in original post

SebastianLylov
New Member

@fchopo thanks a lot - I worked out a flow now and will give it some days to test it 🙂

Did your new flow work or is it still creating duplicates. Inquiring minds would like to know. 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,536)