Oct 12 2020 11:53 AM - edited Oct 13 2020 06:45 AM
Is there a way to get the ID used in a link to the booking appointment with Graph API?
https://outlook.office365.com/owa/calendar/[BookingCalendarAddress]/bookings/xxxxxxxxxxxxxxxxxxxxx
This ID is not the Appointment ID returned by graph API...
Jan 13 2021 10:16 AM
@Martin Coupal , did you ever found an answer to this question? I ran into the same issue where I need this booking id so that I can get back to an existing booking on the bookings page using this id. The appointment id stored in bookings is a different one that's returned by the graph API.
Jan 13 2021 07:29 PM
@Sukumar2021, no I did not find this information. I guess it should be returned by the graph.microsoft.com/beta/bookingBusinesses/ api but it is not for now....
Mar 01 2021 01:12 PM
Mar 01 2021 08:10 PM
Mar 02 2021 12:55 AM
@Sukumar2021 Thank you. By Subscription Id, do you mean appointment Id?
Graph Query:
https://graph.microsoft.com/beta/bookingBusinesses/Development@123.onmicrosoft.com/appointments
Results:
Regards Umer
Mar 02 2021 04:36 AM
Mar 02 2021 05:12 AM
Mar 02 2021 06:21 AM
Mar 02 2021 12:42 PM
Mar 02 2021 01:21 PM
Mar 23 2021 08:29 AM
Mar 23 2021 08:49 AM
Mar 23 2021 08:57 AM
@Sukumar2021 One more thing to be noticed. It is not possible to get meeting Id in case of group meeting. If your resource has capicity more then one, then above mentioned method will not work
Regards
Mar 23 2021 07:42 PM
Dec 01 2022 06:19 PM
Jan 17 2023 03:25 PM
@developert2lpr use GraphApi to get the details of the service, including "webUrl", which has the direct link to the service in it: Get bookingService - Microsoft Graph v1.0 | Microsoft Learn
Apr 21 2023 01:43 AM
I tried this in PHP as follows but the resulting URL was invalid.
The Self Service Appointment Id guid looks like this: "bd01de34-acd7-44c1-9dbe-d4d2b4cedfb7"
$bytes = unpack("C*", hex2bin(str_replace('-', '', $guid)));
$base64 = base64_encode(call_user_func_array("pack", array_merge(array("C*"), $bytes)));
This was the output for $base64: +zBNbEGoS7iXtg41xnewEg==
The doesn't look like the URL from MS Bookings as it only has alphnumerics. What have I missed?
Thanks, Nick
Dec 20 2023 03:52 PM
@Sukumar2021
Hi, I have the same problem with the link.
I follow your instructions using C#, and ended up like this:
byte[] bytes = Guid.Parse(SomeString).ToByteArray(); // Convert the SubscriptionId to bytes
// Convert the trimmed bytes to Base64
string shortId = Convert.ToBase64String(trimmedBytes).Substring(0, 22); // Get the first 22 characters
And it still doesn't work. I tried not trimming the result, and I got a string with 24 characters (which also didn't work). Do you know if I made a mistake?
Apr 17 2024 02:24 AM