Some of my calendar events have two extended properties:
// Extended Properties
var extendedProperties = new EventSingleValueExtendedPropertiesCollectionPage();
extendedProperties.Add(new SingleValueLegacyExtendedProperty
{
Id = _Property_TruckleSoft1,
Value = oSettings.CalendarEntryType
});
if(!string.IsNullOrEmpty(oSettings.ScheduleType))
{
extendedProperties.Add(new SingleValueLegacyExtendedProperty
{
Id = _Property_TruckleSoft2,
Value = oSettings.ScheduleType
});
}
In other code I want to filter for these events:
string strFilterProperty = $"singleValueExtendedProperties/Any(ep: ep/id eq '{eventTypeTag}' and ep/value eq '{oData.Settings.CalendarEntryType}')";
string strFilterProperty = $"singleValueExtendedProperties/Any(ep: ep/id eq '{scheduleTypeTag}' and ep/value eq '{oData.Settings.ScheduleType}')";
So how do I filter for events that have both of the above extended properties?