cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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

6 REPLIES 6
Super User II
Super User II

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

 

Super User II
Super User II

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

New Member

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

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (94,131)