Skip to main content

Notifications

Community site session details

Community site session details

Session Id : dGfxlKea09s0ssDxYWj7so
Power Automate - Building Flows
Unanswered

Create a azure devops work item on email but avoid duplicates

Like (0) ShareShare
ReportReport
Posted on 9 May 2023 02:03:45 by 11

I am trying to create a azure work item on email but wanted to avoid creating duplicate work items if a email arrives with same subject. 

 

I tried the below but the problem is for true it doenst do anything which is what i need but for "Get query results" give other items in the list which are makes the condition false creates more duplicates. Please help. Thanks in advance. 

 

hashik4d_0-1683597701658.png

 

  • hashik4d Profile Picture
    11 on 09 May 2023 at 19:42:50
    Re: Create a azure devops work item on email but avoid duplicates

    Hi @Expiscornovus,

     

    The solution works amazing. Thank you very much 🙂 

  • Expiscornovus Profile Picture
    31,697 Most Valuable Professional on 09 May 2023 at 07:53:21
    Re: Create a azure devops work item on email but avoid duplicates

    Hi @hashik4d,

     

    Try a Filter Array action instead of checking each individual item in a loop. This way you can check for all items at once.

     

    If that Filter Array action comes up empty you can safely create a new work item. You can use a length function in a condition for that check.

     

    Below is an example

     

    length(body('Filter_array'))

    is not equal to 0

     

    filterarray_approach_devops.png

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
stampcoin Profile Picture

stampcoin 125

#2
David_MA Profile Picture

David_MA 104 Super User 2025 Season 1

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 90 Super User 2025 Season 1

Overall leaderboard
Loading started