I’m using the Scheduler (via the nylas-scheduling component). Using the configuration creation API, I’ve added additional_fields, e.g. phone number. I’ve also added a metadata field which has an internal ID that we want to keep with the event. But I haven’t found any way, using APIs, to retrieve this metadata. I was hoping it’d be attached to the event or the booking, but they aren’t there.
Here’s an example of the additional_fields that I’ve added to the configuration:
Hi, just to clarify, is the idea to keep this information available when needed, or it would be a specific field entered by the user?
I would like to keep additional information with the booking, metadata that isn’t visible to the user. I would then like to be able to retrieve that information when I look up the booking via the API. To be more specific, we have internal IDs that represent the locations where the booking/meeting will take place. When creating the booking using the Scheduler, I would like to add a hidden metadata field that sends the location ID with the booking. Then when I I use the booking API to retrieve the booking, I’d like to be able to get that metadata back with booking.
Here are the steps I followed:
Created the configuration using the Java library. You could also do this using cURL with the endpoint that you mentioned: Create Configuration. In this configuration I only text fields as additional_fields.
Then used cURL to update the additional_fields, adding a metadata field.
Using the nylas_scheduler, I booked an event with that meta data. Here’s an example of the request: POST https://api.us.nylas.com/v3/scheduling/bookings?configuration_id=[config_id]
Now, this gets to my question. How can I retrieve that facility_id metadata from the booking? or the event? What’s the point of taking additional fields, particularly metadata, if we can’t retrieve it? I understand that the visible fields, like the phone number is included in the email and the google calendar event, but the metadata doesn’t appear to be available anywhere. How can I access that metadata that was added to the booking.
One final question, I noticed that when I create a new event by the API, metadata fields are not being applied either to the webhook or when I get the individual event.
I made it wokring only if after the creation, I send another PUT request with the metadata.
Does it mean metadata can only be updated by PUT request(after creation) and it cannot be not set at creation time?
I cannot upload the Postman file, but after reading your comment, I noticed that I’m currently using the booking endpoint to create the event. I think this is why the metadata is not being saved.
Metadata in Booking won’t be inherited by the event, right?