Showing results for 
Search instead for 
Did you mean: 
New Member

How to send email based on specific service when incident is created in Pager Duty



I'm trying to send an email when a trigger is happenning in PagerDuty. So I'm using the template provided for this.


The problem I have is that left as is, this will generate an email for every single incident generated at our Pager Duty. We have hundreds of services there so obviously this doesn't work for me, since I only want to get an email if an incident is triggered on a single service.


So far I tried changing the trigger condiction on the pager duty block of, with something like this


@equals(triggerBody()?.incidents[‘{service}’], ‘knowledge-administration-service-prod’)

But this seems to be wrong syntax because the Flow Checker is telling me this is wrong

Checking documentation I see this returns an incidents response object, but I see no examples on how to access the service element within an Incident object just to make sure that the service will be the one I want


Any idea if this can be accomplished? If yes, how? What's wrong on my syntax? Just not sure how to access an element from the array and check the service property 



Helpful resources


Super User Program Update

Three Super User rank tiers have been launched!


Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021


New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!


Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Users online (7,565)