I’m trying to use dataservice with filters to get all variants that has no value in a specific datetime field. Is this possible?
The following code runs, but returns no values (should be 1 variant).
ICollection<DistributorLitiumProductInfoModel> prods = query
.Filter(filter => filter
.Bool(boolFilter => boolFilter.Must(boolFilterMust => boolFilterMust
.Field(ProductFieldNameConstants.ExpiredFromDistributors, "eq", "null"))
))
.ToList()
Also tried to set the values to null and DateTime.MinValue but both of these will throw errors.
Litium version: 7.6.1