New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom Fields #4
Comments
At this moment the API does not yet expose the custom fields. |
I also noticed these don't show in Outlook either - are there plans to expose this information in Outlook in the near future? |
It is an interesting suggestion to post in UserVoice: |
@fpintos Any update regarding adding support for Custom Fields to the API? |
Not yet, but it is in the plans. |
@fpintos Any updates? |
Unfortunately, no change on this yet. |
Is it possible to the get the custom fields from a service so i can add them to a custom form ? |
I'll forward this request to the feature team. Last time I checked the API didn't expose custom fields yet. |
+1 This would make a huge difference to our use case. |
Any progress on this? Those custom fields are pretty important to be able to call. If the user is creating fields, it's because the info is needed. Would love to have this feature. |
Just a heads up for anyone needing to access the custom questions. I spent a long time going down this rabbit hole as it was new to me so I figured I would share my experience to save others time. The fields cannot currently be called via the bookings API, but they can be called using extended events within the Calendar API as stated by @fpintos . This isn't ideal, but it can work for many use cases. For example: After you have successfully called the bookings appointment, you could extract the appointment //{calendarID} = Same as your bookings calendar ID
//{eventID} = the bookings appointment id
https://graph.microsoft.com/v1.0/users/{calendarID}/events/{eventID}?$expand=singleValueExtendedProperties($filter%3Did eq 'Binary {ccb88e73-951a-4b10-bb49-e6628b8d8494} Name BookingItemAnsweredCustomQuestions') The key is in the expand call. A couple things to note with this.
var base64EncodedBytes = Convert.FromBase64String(val);
string json = Encoding.UTF8.GetString(base64EncodedBytes);
'String {ccb88e73-951a-4b10-bb49-e6628b8d8494} Name BookingItemCustomerName' You can call multiple extended properties in the expand call like so in the API call like so.
This page explains expanded properties a bit more. Hope this helps anyone needing this feature. |
Any idea how to extract customers info when the booking event support multiple customers (when you set maximum attendees higher than 1 in the service). It is not available in the attendees property... Booking Graph API does not expose this information also... |
This has been open for 3 years now...is there no way to get customers info, specifically custom fields, when there are more than 1 attendee via Graph? |
I was able to extract custom field data successfully using Power Automate, but only for single customer services. Flow Description This flow runs nightly and parses user data from events located in a generic Outlook account calendar (this account is being used by the Bookings app to schedule appointments) then creates a CSV file stored in a Shared Documents team library. Attached are the details of my solution. Hope this helps! |
This simple issue has been open for 1259 days and it's still not resolved ... Can we get the custom fields (questions and answers) when calling Get Appointment, please? |
@zigagiz - my solution noted in this previous post works; however, the TSV export in the Bookings app now includes custom fields. |
@khuffman66 - I've tried Tronald's solution and it's what we'll need for our use case. I just find it baffling that custom fields aren't present in the Get bookingAppointment response, but need to be retrieved via a different API. |
@Tronald (Justin) ... thanks for the answer, very useful. However, it's been a couple of years since you commented and provided the solution but I have to ask, how the hell did you know that those filters were the ones to use to get the relevant values? I haven't found a scrap of documentation that provides that answer and yet here it is. Keen to understand so if you can remember then it'd be great to share. |
@brad302 I am so happy my answer has been helpful. I don't remember exactly how I figured this out, but it started with reading issue #7 . Once I learned about the extended properties, I believe I basically attempted a bunch of property name guesses based on @fpintos use of 'BookingItemCustomerName' and looked at what was successfully returned. Thankfully, the property naming conventions were consistent so it wasn't too bad to guess my way to the answer. It would be so much nicer if Microsoft provided easy to find documentation though. This is just one of those times where determination mixed with a bit of luck to got me to the answer. |
Closing this issue here on the samples. |
Bookings supports defining custom fields for different services.
Is this supported by the API currently?
The text was updated successfully, but these errors were encountered: