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 / Microsoft Bookings - T...
Power Automate
Answered

Microsoft Bookings - Trigger Action Based on Service Name

(0) ShareShare
ReportReport
Posted on by 6

I have set up a Microsoft Bookings "When a appointment is Created" action to insert a new row into Google Sheets when a meeting is booked. That is all working great.

 

My Microsoft Bookings calendar has many services, and I'd like this action to run only when a user books a meeting through specific services. I've tried setting two trigger conditions (see below), but they didn't work:

 

 

@equals(triggerBody()?['ServiceName'], 'Test1')
@equals(triggerBody()?['ServiceName'], 'Test2')

 

 


The name of the services, respectively, are Test1 and Test2. When I book a meeting through any service (including these two), the action doesn't run. When I remove these trigger conditions, it works.

What am I doing wrong? What's the correct way to check for a specific service name in the trigger conditions?

Categories:
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @alex_claireseng ,

     

    Please try this

    @or(equals(triggerBody()?['ServiceName'], 'Test1'),equals(triggerBody()?['ServiceName'], 'Test2'))

     

    Best Regards,

    Wearsky

  • alex_claireseng Profile Picture
    6 on at

    Hi Wearsky,

     

    Thank you for your reply! This still doesn't seem to be working since the action doesn't run when I book a meeting through any of these two services. Is there a way to use the service ID instead? I'm thinking that might be more reliable than checking for the name. If so, where can I find the Microsoft Bookings Service ID?

     

    Thanks,

     

    Alex

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @alex_claireseng ,

     

    It worked for me. I believe that you write a wrong name in expression.

    You can get service id/name from the trigger. (remove the trigger condition first )

    vxiaochenmsft_0-1699320258942.png

    vxiaochenmsft_1-1699320278160.png

     

    Best Regards,

    Wearsky

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 299

#2
11manish Profile Picture

11manish 274 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard