cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Sumaira
Post Prodigy
Post Prodigy

Get bookings from power automate

Hello Community Experts,

How do i get the booking details from Microsoft bookings? I don't find any trigger for that.

How do i achieve this requirement?

Kindly guide

Thanks in advance!

1 ACCEPTED SOLUTION

Accepted Solutions
Expiscornovus
Most Valuable Professional
Most Valuable Professional

Hi @Sumaira,

 

I just saw Microsoft Booking is connected to a specific account with a calendar. So it would be possible by using the when a new event is created (V3) trigger. 

 

1. Go to the booking page an check which account is used for the booking calendar

bookingcalendaraccount.png

 

2. Add a new event is created (V3) trigger action and make sure you are use the account from step 1

bookingaccountconnection.png

 



Happy to help out! 🙂

Interested in more #PowerAutomate #SharePointOnline or #MicrosoftCopilotStudio content?
Visit my blog, Subscribe to my YouTube channel or Follow me on Twitter


View solution in original post

24 REPLIES 24
Expiscornovus
Most Valuable Professional
Most Valuable Professional

Hi @Sumaira,

 

As far as I am aware there is no connector for this product yet. I do see a UserVoice idea for this:

https://powerusers.microsoft.com/t5/Power-Automate-Ideas/Triggers-for-Bookings/idi-p/594425

 

You could interact with Booking via the Graph API though: https://docs.microsoft.com/en-us/graph/api/resources/booking-api-overview?view=graph-rest-beta



Happy to help out! 🙂

Interested in more #PowerAutomate #SharePointOnline or #MicrosoftCopilotStudio content?
Visit my blog, Subscribe to my YouTube channel or Follow me on Twitter


@Expiscornovus thanks for the response

Can you please advise me on how to use graph api with power automate?

Best regards!

@Expiscornovus I want to have a trigger of when a booking is created

How do i do that

Its an urgent high priority requirement

Please guide @Expiscornovus 

Best regards!

Expiscornovus
Most Valuable Professional
Most Valuable Professional

Hi @Sumaira,

 

I just saw Microsoft Booking is connected to a specific account with a calendar. So it would be possible by using the when a new event is created (V3) trigger. 

 

1. Go to the booking page an check which account is used for the booking calendar

bookingcalendaraccount.png

 

2. Add a new event is created (V3) trigger action and make sure you are use the account from step 1

bookingaccountconnection.png

 



Happy to help out! 🙂

Interested in more #PowerAutomate #SharePointOnline or #MicrosoftCopilotStudio content?
Visit my blog, Subscribe to my YouTube channel or Follow me on Twitter


@Expiscornovus Many thanks for the response

how do i get below details please advise

 

specific booking’s
1. date and time
2. Microsoft Teams join URL
3. Microsoft Teams dial-in conference
 
Thanks!

This looks like a great workaround, at least for triggering an action when a new booking is made. But, will it be possible to extract the individual data fields from Bookings using this method? E.g. say you have fields like name, phone number, email and perhaps a few custom questions in your booking form; how could you extract these from the calendar event and use them in your flow? 

Expiscornovus
Most Valuable Professional
Most Valuable Professional

Hi @tslupphaug & @Sumaira,


I believe that information is stored in the body of the event. Normally the body content looks a bit like this.

 

********************************************************
NOTE: This is a read-only view of the booking.
Please use Microsoft Bookings for web, iOS or Android to edit this booking.
Any changes made here will be lost.
********************************************************

Customer Info
--------------------
Name: Contoso Sports
Email: contososports@yourdomain.onmicrosoft.com
Phone Number: 0123456789

Booking Info
--------------------
Service name: Initial consult
Location: Our office address

Internal Notes
-----------------------
This is where you can add notes about this service that only you and your staff
see.

 

A possible solution could be to use some split functions to extract that data. 

 

Below is an example of how to use that approach to extract the customer name from the body. You have to repeat that same approach for the other fields though.

 

1. Add an HTML to text action. Use the body dynamic value from the event trigger actionbody_eventemail.png

2. Add an compose action. Use the following expression to extract the customer name from the body with two split functions.

split(split(outputs('Html_to_text')?['body'], 'Name: ')?[1], 'Email: ')?[0]

customernameextraction.png



Happy to help out! 🙂

Interested in more #PowerAutomate #SharePointOnline or #MicrosoftCopilotStudio content?
Visit my blog, Subscribe to my YouTube channel or Follow me on Twitter


Thanks a lot @Expiscornovus! I managed to get this working with Name and Email, but, when I try to extract custom fields I get an error message.

 

Calendar event body (the part I'm failing to extract text from):

 

Egendefinerte felter
----------------------
Spørsmål 1 – Bedrift
 Svar – Testbedriften AS
Spørsmål 2 – 

 

 

The text I'm trying to extract here is "Testbedriften AS". Expression:

 

split(split(outputs('Html_to_text')?['body'], 'Bedrift Svar – ')?[1], 'Spørsmål 2')?[0]

 

 

Error message received when running the flow:

image.png

Expiscornovus
Most Valuable Professional
Most Valuable Professional

Hi @tslupphaug,

 

It looks like it can't find 'Bedrift Svar - '. I think this is because part of that text is on a new line.

 

Can you try and use this expression instead:

split(split(outputs('Compose_3'), 'Svar – ')?[1], 'Spørsmål 2')?[0]


Happy to help out! 🙂

Interested in more #PowerAutomate #SharePointOnline or #MicrosoftCopilotStudio content?
Visit my blog, Subscribe to my YouTube channel or Follow me on Twitter


@Expiscornovus: My problem here is that the "Custom fields" consists of multiple questions and answers, where all answers are being preceeded with just "Answer - " ("Svar" in Norwegian). If I don't include the preceding line, I won't be able to identify the right line to choose.

 

So if you have e.g. 3 custom fields, it will show up something like this:

 

 

Custom fields
----------------------
Question 1 – Company
 Answer – Company A
Question 2 – Nationality
 Answer – Norwegian
Question 3 – Your date of birth
 Answer – 01.02.1987

Internal Notes
-----------------------

 

 

 (sorry for not being clear about this in my previous post)

Expiscornovus
Most Valuable Professional
Most Valuable Professional

Hi @tslupphaug,

 

Thanks for explaining that. My Norwegian is not that good 😉

 

In that case you can split on the 'Question 1 - Company' part, that should be unique enough. And if you want to remove the answer part you can use a third split function or maybe a replace function instead of that could also be an option.

split(split(split(outputs('Compose_3'), 'Spørsmål 1 – Bedrift')?[1], 'Svar – ')?[1], 'Spørsmål 2 – ')?[0]

 



Happy to help out! 🙂

Interested in more #PowerAutomate #SharePointOnline or #MicrosoftCopilotStudio content?
Visit my blog, Subscribe to my YouTube channel or Follow me on Twitter


@Expiscornovus Thanks again for all your help, couldn't have done it without you! I got it all to work now, with a few minor tweaks.

 

An advice for anyone attempting the same as me: if you're running into problems, start with simpler splits to begin with. Then work your way step by step. And be aware that " - " is not the same as " – ".

@Expiscornovus Thanks a lot for the help

I'm struggling with below scenario now with respect to booking, when booking is created in ms booking, i want multiple customers Name, phone number and email ID to send sms and emails to them at once

I checked using same approach ,but it is not giving me customers details there

Can you please suggest me how do i get multiple customers details to send sms to them?

Please guide,

Thanks in Advance

Hi @Sumaira , I've been looking at Power Automate, to resolve this issue. I found, that I was able to see sent email's to multiple customers. Its not a direct reference, but you see in the exchange, by using message trace, a sent email, with the service name, and time of email sent. It does not tell you customer name, phone number and email Id. So armed with this information I tried setting up a power automate, looking at the sent mailbox of the booking page. However, despite sending the mail, the mailbox, does not have an email in the sent mailbox, when first setting up a booking. If you cancel the booking, the mailbox will have a sent, "cancelled" booking email. However, you cannot see a confirmed booking, or a new event. When you add a staff member, you do see a sent email, however, it carries the note 

 

NOTE: This is a Multi customer booking. Log into Bookings to see customer information and notes for this event.

Booking Info
--------------------
Service name: xxxxxx
 

At this point,  I'm not sure where to take it. 

I'm having the same issue as @Sumaira. As long as it's only one customer, it can be automated using the details contained within the calendar event. But with multiple customers appointments, there doesn't seem to be any way to retrieve the customers' info.

Does anyone know if a proper connector between MS Boookings and Power Automate is planned or in the works? Or if this can be solved in any other way? I really hope someone from Bookings or PA sees this thread. For my specific purposes, I could solve the problem if only I was allowed to create appointments and time intervals shorter than 5 mins.

@Expiscornovus Since you've been so helpful; you don't happen to know if there's any way to achieve automation with multiple customer bookings as well (where the details aren't available in the calendar event or emails)?

@Expiscornovus , I've set up power automate, but when i try to create the booking through the booking page, the flow get timeout eventually, but if I manually add the new event through the calendar, it has complete successfully. Are you able to help?

 

Thanks 

pwintert
Frequent Visitor

@Expiscornovus  I can see how this would work and began traveling down that road parsing through the body to pull the relevant information required to solve my problems when I ran into a new one.  Bookings with Multiple Attendees.  Each individual booking information is not transferred into the calendar booking, specifically the body. Instead its a generic message that says " This is a Multi customer booking. Log into Bookings to see customer
information and notes for this event." .   Any ideas how to get the name/email of that attendee?   

@tslupphaug Did you ever solve your issue with multiple bookings? Having the same issue and I can parse through and do what i need to for individuals but really need it to work for all scenarios. 

@pwintert: Nope. Ran into the same problem, and could not find a solution for it. Since the details for multiple attendees bookings are hidden inside Bookings, I don't think this is possible currently. 

 

I think our best bet would be to wait for an official connection to Bookings in Power Automate, possibly arriving sometime in 2050...

Helpful resources

Announcements

Community will be READ ONLY July 16th, 5p PDT -July 22nd

Dear Community Members,   We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd.   During this period, members will not be able to Kudo, Comment, or Reply to any posts.   On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities.   What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!

Summer of Solutions | Week 4 Results | Winners will be posted on July 24th

We are excited to announce the Summer of Solutions Challenge!    This challenge is kicking off on Monday, June 17th and will run for (4) weeks.  The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions to as many questions as you can. Answers can be provided in all the communities.    Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”)   - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024   Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods.  You must enter into each weekly Entry Period separately.   How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different.    Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers.  At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing.  Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner.  A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random.  Individuals will be contacted before the announcement with the opportunity to claim or deny the prize.  Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners.   Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event.   ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE**   Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Community MembersNumber SolutionsSuper UsersNumber Solutions Deenuji 9 @NathanAlvares24  17 @Anil_g  7 @ManishSolanki  13 @eetuRobo  5 @David_MA  10 @VishnuReddy1997  5 @SpongYe  9JhonatanOB19932 (tie) @Nived_Nambiar  8 @maltie  2 (tie)   @PA-Noob  2 (tie)   @LukeMcG  2 (tie)   @tgut03  2 (tie)       Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 2: Community MembersSolutionsSuper UsersSolutionsPower Automate  @Deenuji  12@ManishSolanki 19 @Anil_g  10 @NathanAlvares24  17 @VishnuReddy1997  6 @Expiscornovus  10 @Tjan  5 @Nived_Nambiar  10 @eetuRobo  3 @SudeepGhatakNZ 8     Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji32ManishSolanki55VishnuReddy199724NathanAlvares2444Anil_g22SudeepGhatakNZ40eetuRobo18Nived_Nambiar28Tjan8David_MA22   Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 4:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji11FLMike31Sayan11ManishSolanki16VishnuReddy199710creativeopinion14Akshansh-Sharma3SudeepGhatakNZ7claudiovc2CFernandes5 misc2Nived_Nambiar5 Usernametwice232rzaneti5 eetuRobo2   Anil_g2   SharonS2  

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners.    The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights.    Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.    

Updates to Transitions in the Power Platform Communities

We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for.  We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer.   Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together.   Here's to new beginnings and endless possibilities!   If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport.   To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages

Users online (595)