cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Nick-FIPRA
Frequent Visitor

Microsoft Bookings - Daily Email

Hi all - 

 

I'm trying to build a Flow that sends out an e-mail every day with the bookings made in Microsoft Bookings. 

 

I found this Youtube video on how to do it - and the associated web page. I've followed the steps, although I'm getting stuck at the part where I have to append the variables to the array.

 

The JSON I'm using is straight from the example, minus me changing it to suit my own case. (Literally just removing the example and adding in what I need.)

 

Screenshot 2021-07-22 at 11.38.57.png

 

last(split(first(split(outputs('Html_to_text')?['body'], 'Email')), 'Name: '))

 

 

I used a JSON code checker to see what the issue was, and if I go by that, it says I have an extra comma in there somewhere - although where that is, I can't say for sure.

 

The effect is that when I try to insert the variable into the array, the variable is not recognized as having valid JSON.

 

Screenshot 2021-07-22 at 11.40.46.png

 

I'm trying to look at the booking in Outlook on the Web to see what else could be the matter, and I'm not coming up with anything. Here's an example of what it looks like.

 

Screenshot 2021-07-22 at 11.42.17.png

 

The rest of the Flow works fine - I get one item (the category, which we use for the desk number), but I need to know how to add the rest of the info.

 

Thanks for any help!

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Nick-FIPRA 

 

You're missing commas... after each key value pair...  I'll get you sorted - don't worry.  Let me know what the next problem is.

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Cheers,
Damien


P.S. take a look at my new blog here and like & subscribe to my YouTube Channel thanks 😉

View solution in original post

8 REPLIES 8
DamoBird365
Microsoft
Microsoft

Hi @Nick-FIPRA 

 

Saw your post on Reddit 😉

 

Try putting quotes as follows to complete your json:

DamoBird365_0-1627329953177.png

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Cheers,
Damien


P.S. take a look at my new blog here and like & subscribe to my YouTube Channel thanks 😉

Nick-FIPRA
Frequent Visitor

Hi Damien,

 

Thanks for your answer! I tried your solution but unfortunately no luck.

 

Screenshot 2021-07-27 at 09.29.21.png

 

I would expect that the grey boxes (where it says "Colleague Name" etc) would turn purple to indicate that they're valid, no? 

 

The only other thing I have is the code to set the three variables: 

 

last(split(first(split(outputs('Html_to_text')?['body'],'Email')),'Name: '))
last(split(first(split(outputs('Html_to_text')?['body'],'Booking info')),'Email: '))
last(split(first(split(outputs('Html_to_text')?['body'],'Additional')),'Service name: '))

 

(I added a pic of the Outlook on the Web calendar booking in my original post so you can compare what's in them.)

 

I also tried to reinsert this code - worth a shot, eh? - but no luck either.

 

Beyond contacting the creator of the video (and who knows how much she charges!) I'm still stuck.

 

Thanks again.

Hi @Nick-FIPRA 

 

You're missing commas... after each key value pair...  I'll get you sorted - don't worry.  Let me know what the next problem is.

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Cheers,
Damien


P.S. take a look at my new blog here and like & subscribe to my YouTube Channel thanks 😉

Nick-FIPRA
Frequent Visitor

Got it! Woo-hoo! Thanks so much for your help.

 

Screenshot 2021-07-27 at 10.16.48.png

Bskumar99
New Member

Hi,

I am trying to do the same but am struck at 'Get Bookings' Action. My subscription is Microsoft 365 G3 GCC.

All I am seeing when I need to create an action I am seeing only Get Calendar instead of Get Bookings.

I am wondering if this is something to do with our subscription 'Microsoft 365 G3 GCC'

 

If yes, please let me know when we can get this ACTION added to this version of the subscription?

 

Thanks much in advance,

Suresh Bommanaboina 

 

Hi @DamoBird365

 

Thanks for your help on this. It's been working great - although a few items have come up, so I wanted to check in with you to see if you might be familiar with this.

 

The main issue is that I've added some Services to Microsoft Bookings that last a few working days (2 Days, 5 Days, etc.) These 5 days sometimes wrap around the week since the business is closed on Saturday and Sunday.

 

Whenever a user selects one of these multi-day Services, they are not reflected in the daily email (i.e. John Doe's booking for 2 days doesn't show up at all.)

 

I've tried to see if there's any difference in the Outlook calendar booking (to see if I can mimic what I did with the one-day bookings) but I'm not seeing any difference at all. In fact, the text is identical, aside from the Service name. 

 

Is there a way around this? It kind of gives off the impression that there's no booking when there is indeed one.

 

Thanks again for any insight!

Hi @Nick-FIPRA 

 

I am trying to understand what you are experiencing.  You are sending a reminder email for events?  1 day events it's fine but for 2 and 5 is it sending nothing or just an email on day 1?  If the latter, could you implement a count on the number of days from start to end of the event and then create a loop delayed by 24 hours and a condition where the day must be a weekday (to cater for weekends).

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Cheers,
Damien


P.S. take a look at my new blog here and like & subscribe to my YouTube Channel thanks 😉

Hi Damien,

 

Exactly, it's a daily reminder email. My office has moved to a hybrid working model so some of my colleagues wanted to get a "daily digest" email of who has reserved a desk for the day. 

 

I used the video I linked in my original post. In a nutshell, the Flow pulls info from the Outlook calendar events (the Bookings) and sends an email in a nice clear table to whoever I want.

 

Several colleagues have requested that I add multi-day bookings (which is no problem in MS Bookings), but the Flow doesn't appear to recognize them in the same way as single-day bookings, so they don't appear in the daily reminder email at all - not even the first day.

 

Screen Shot 2021-09-02 at 4.23.51 PM.png

Screen Shot 2021-09-02 at 4.24.00 PM.png

 

I originally thought that it could be that multi-day calendar events (i.e. the bookings) have slightly different text in the body of the event, but when I checked, that doesn't appear to be the case - so the Flow should detect exactly the same thing, ostensibly.

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (2,097)