Need data for below query :
Select all projects with project type = Adhoc project, Planned project, Planned enhancement, Adhoc enhancement, LoB is not (PM, Horizontal, Tech-Org, Transport, Marketing).
Query in c#
EntityQuery eq = new EntityQuery
{
TypeName = "Project",
Fields = new string[] { "name", "Project.Name", "C_lob" },
Where = new And
{
Conditions =new Condition[]
{
new Compare {LeftExpression = new FieldExpression {FieldName = "ProjectType"}, Operator = Operator.In, RightExpression = new ConstantExpression {Value=new String[] {"Adhoc project", "Planned project", "Planned enhancement", "Adhoc enhancement"}}},
new Compare {LeftExpression = new FieldExpression {FieldName = "C_lob"}, Operator = Operator.NotEqual, RightExpression = new ConstantExpression {Value=new String[] {"PM", "Horizontal", "Tech-Org', 'Transport", "Marketing"}}}
}
}
};
getting error :
The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://clarizen.com/api:queryExpression.
Please Help