cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

How to check work items duplicates

Hi! This is my flow:

Capture3.PNG

My flow works like this: 
1. I am create Work Item in Azure Boards;
2. Change "State" from New to Work 1;
3. Power Automate create child tasks.

Everything work fine, but i have one problem. When i edit my work item (First Step) this flow started automatically running and i have a lot of duplicates... How i can configure my flow so that duplicates are not created ?

1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

Hi @Anonymous , 

Few things to consider:

1- You need to check if the current work item that has been updated already has an existing child task

2-If yes, then do terminate flow

3-If no, then create the child task 

 

Manar_0-1651781536763.png

 

 

I tested it and it worked for me so let me know if any further help needed

 

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Hi @Anonymous , 

Few things to consider:

1- You need to check if the current work item that has been updated already has an existing child task

2-If yes, then do terminate flow

3-If no, then create the child task 

 

Manar_0-1651781536763.png

 

 

I tested it and it worked for me so let me know if any further help needed

 

Anonymous
Not applicable

thank you for reply! What i need to write in step "Work item task children count" ?

Anonymous
Not applicable

please follow these steps

1- create a new compose 

Manar_0-1651782089183.png

 

2-click on "input" then Expression and type Length 

Manar_1-1651782166252.png

3- switch to dynamics tap and add "value" , then hit ok

Manar_2-1651782247558.png

 

the compose should have this new expression length(outputs('Get_work_item_children')?['body/value'])

Manar_3-1651782323078.png

 

Anonymous
Not applicable

ok i will check now and let you know if it worked

Anonymous
Not applicable

Thank you a lot! Its work!

Anonymous
Not applicable

Could you also tell me how to filter duplicates by unique name? In your example, the task looks at whether there is an Epic, is it possible to configure the task to look at whether there is an Epic with a unique name, or just a unique name?

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (2,849)