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

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to send email base...
Power Automate
Unanswered

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

(0) ShareShare
ReportReport
Posted on by

Hello,

 

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 https://docs.microsoft.com/en-us/connectors/pagerduty/#incidentsresponse 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 https://docs.microsoft.com/en-us/connectors/pagerduty/#incident

 

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 

 

Thanks!

Categories:
I have the same question (0)

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 237 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 176 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 96 Super User 2026 Season 1

Last 30 days Overall leaderboard