web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Trigger an email when ...
Power Automate
Unanswered

Trigger an email when a workitem is closed without a certain tag

(0) ShareShare
ReportReport
Posted on by 3

Hi All, 

 

 

In my company we work with Azure and every time we close an incident, we us some tags. We use a lot of different tags which we later query. 

What I want now is to receive an email when a tag isn't used. So, for example when you close an incident we use two tags Tag-A or Tag-B. Now I want to receive an email when someone forgot to use those tags. 

What is the best way to do this? 

I tried a lot of different things but i cannot get the program to search for tags. 

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,830 Most Valuable Professional on at

    Hi @JordiF,

     

    Just to double check, you are talking about Azure DevOps work items, correct?

     

    It that case you can use a contains to check if the System_Tags field has either Tag-A or Tag-B. You can use that in a trigger condition expression.

     

    If so, try something like below.

     

     

     

    @and(not(contains(triggerOutputs()?['body/fields/System_Tags'], 'Tag-A')), not(contains(triggerOutputs()?['body/fields/System_Tags'], 'Tag-B')))

     

     

     

    triggerconditionexpression.png

     

  • JordiF Profile Picture
    3 on at

    Thanks the flow is working. 

    But the next step is to send to the person that is closing the work item receives the email.

    I keep getting this error 

     

    The 'inputs.parameters' of workflow operation 'Send_an_email_(V2)' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'emailMessage/To' is required to be of type 'String/email'. The runtime value '"\n name@email.nl"' to be converted doesn't have the expected format 'string/email'.

     

    It looks like it's putting \n infront the email. I googled alot but can't find the solution. 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 608

#2
Valantis Profile Picture

Valantis 416

#3
11manish Profile Picture

11manish 348

Last 30 days Overall leaderboard