Get the ID used in a link for accessing a Booking appointment

%3CLINGO-SUB%20id%3D%22lingo-sub-1772499%22%20slang%3D%22en-US%22%3EGet%20the%20ID%20used%20in%20a%20link%20for%20accessing%20a%20Booking%20appointment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1772499%22%20slang%3D%22en-US%22%3E%3CP%3EIs%20there%20a%20way%20to%20get%20the%20ID%20used%20in%20a%20link%20to%20the%20booking%20appointment%20with%20Graph%20API%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Foutlook.office365.com%2Fowa%2Fcalendar%2F%5BBookingCalendarAddress%5D%2Fbookings%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Foutlook.office365.com%2Fowa%2Fcalendar%2F%5BBookingCalendarAddress%5D%2Fbookings%2F%3C%2FA%3E%3CU%3E%3CSTRONG%3Exxxxxxxxxxxxxxxxxxxxx%3C%2FSTRONG%3E%3C%2FU%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20ID%20is%20not%20the%20Appointment%20ID%20returned%20by%20graph%20API...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22BookingLink.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F226299iC9B1C84920344555%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22BookingLink.png%22%20alt%3D%22BookingLink.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1772499%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ECalendar%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2057783%22%20slang%3D%22en-US%22%3ERe%3A%20Get%20the%20ID%20used%20in%20a%20link%20for%20accessing%20a%20Booking%20appointment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2057783%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F24099%22%20target%3D%22_blank%22%3E%40Martin%20Coupal%3C%2FA%3E%26nbsp%3B%2C%20did%20you%20ever%20found%20an%20answer%20to%20this%20question%3F%20I%20ran%20into%20the%20same%20issue%20where%20I%20need%20this%20booking%20id%20so%20that%20I%20can%20get%20back%20to%20an%20existing%20booking%20on%20the%20bookings%20page%20using%20this%20id.%20The%20appointment%20id%20stored%20in%20bookings%20is%20a%20different%20one%20that's%20returned%20by%20the%20graph%20API.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2175648%22%20slang%3D%22en-US%22%3ERe%3A%20Get%20the%20ID%20used%20in%20a%20link%20for%20accessing%20a%20Booking%20appointment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2175648%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F24099%22%20target%3D%22_blank%22%3E%40Martin%20Coupal%3C%2FA%3E%26nbsp%3B%20is%20there%20any%20solution%20available%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20also%20need%20this%20Id.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%3C%2FP%3E%3C%2FLINGO-BODY%3E
Regular Contributor

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...

 

BookingLink.png

14 Replies

@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.

@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....

@Martin Coupal  is there any solution available?

 

I also need this Id.

 

Regards

Found the solution. Subscriptionid field is rather converted to short id used in the link. Subscriptionid is converted to 22 char shortid using convert.tobase64string method.

@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: 

umer_j_0-1614675289451.png

Regards Umer

Sorry. I meant selfserviceappointmentid which’s a guid and one of the booking fields.
Hi. Thank you very much for your reply. I am clear about selfserviceappointmentId but what do u mean by one of the booking fields. ? As I understood, I have to convert selfserviceappointmentId to 22 char shortid using convert.tobase64string to get last part of Url?

Regards Umer

Best Regards

Umer Javaid
Hi Umer, that’s correct. You need to convert selfserviceappointmentid to 22 char short id.
Hi @Sukumar2021 , can you pleaes elloborate what do you mean by 22 char short id. If I encode selfserviceappointmentid as base64 using online converter, I get competely different encoded string. Can you please help me to point to right resource. I have selfserviceappointmentid " cb34c6ef-b947-412a-96a1-03fb553774c5". what will be the encrypted value ?
You need to first convert the guid value to tobytearray() and pass that value as a parameter to tobase64string method to get the short id.
Hi @Sukumar2021,

I just want to know if this is possible inside the Power Automate? Checking the conversions it seems there is not tobytearray() available.
Unfortunately, this functionality is not available in power automate. You have to use azure functions and call this function from power automate.

@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

 

Thank you very much for the quick response @Sukumar2021! Yeah I guess Azure Functions is the only way to do it in Power Automate.