Official comment
Hi Deeksha,
Here is an example:
var entityQuery = new EntityQuery
{
TypeName = "CalendarException",
Fields = new[] { "Name", "EntityType", "ExceptionType", "EventCalendar" },
Where = new And
{
Conditions = new Condition[]
{
new Compare
{
LeftExpression = new FieldExpression{FieldName = "EventCalendar"},
Operator = Operator.In,
RightExpression = new QueryExpression
{
Query = new EntityQuery
{
TypeName = "User",
Fields = new[] {"ExternalId"},
Where = new Compare
{
LeftExpression = new FieldExpression{FieldName = "ExternalId" },
Operator = Operator.Equal,
RightExpression = new ConstantExpression { Value = "5237vi7an4xa5m7dek3zwomzj1926" }
}
}
}
},
new Compare
{
LeftExpression = new FieldExpression{FieldName = "StartDate"},
Operator = Operator.GreaterThan,
RightExpression = new ConstantExpression{Value = "2018-09-1"}
}
}
}
};
I hope this helps,
Elad
Comment actions