How can I search for an event WITHOUT a specific extended attribute using the Google Calendar API?

Is there a way to search for a calendar event that does not have a specific common extended set of properties?

Using sharedExtendedProperty, I can search for calendar events containing a specific value of the extended property, for example sharedExtendedProperty = "student_id = 500", will return all calendar events where the common extended property of student_id is 500.

But I cannot find a way to search for events in which the same property has not yet been set. Is there any way to do this?

As an example, consider the three events below. I want to perform a search that will return any event that does not have the extended student_id property. Therefore, "training 2" and "training 3" must be returned, but not "training 1".

{ "summary": "training 1", "start": { "dateTime": "2016-08-02T09:00:00-07:00" }, "end": { "dateTime": "2016-08-02T11:00:00-07:00" }, "extendedProperties": { "shared": { "student_id": "56a71d61c17c248729c9b815" } } } { "summary": "training 2", "start": { "dateTime": "2016-08-04T09:00:00-07:00" }, "end": { "dateTime": "2016-08-04T11:00:00-07:00" }, "extendedProperties": { "shared": { "course_type": "internal" } } } { "summary": "training 3", "start": { "dateTime": "2016-08-06T09:00:00-07:00" }, "end": { "dateTime": "2016-08-06T11:00:00-07:00" } } 
+6
source share
1 answer

Event search without using sharedExtendedProperty

Perhaps just check out the various options you can use in the event list. And just note that sharedExtendedProperty is an optional parameter, so you can search for an event without this.

An alternative function for sharedExtendedProperty in event search.

I think there is no alternative way or to perform the same function in the event search. Google creates this for you to search for events based on the values โ€‹โ€‹of their advanced properties . Therefore, if you want to search for such an event, you will have no choice but to use this parameter.

-one
source

All Articles