Discussions

Ask a Question
Back to All

IQA in REST with Filter in 105 doesn't filter using code that worked in .98

Post to https://{{URL}}/api/queryservice/_execute

Body
{
"$type":"Asi.Soa.Core.DataContracts.GenericExecuteRequest, Asi.Contracts",
"EntityTypeName":"QueryService",
"OperationName":"FindByPath",
"Parameters":{
"$type":"System.Collections.ObjectModel.Collection`1[[System.Object, mscorlib]], mscorlib",
"$values":[
{
"$type":"System.String",
"$value":"$/Common/Queries/Search/Contact/Last Name"
},
{
"$type":"Asi.Soa.Core.DataContracts.QueryData, Asi.Contracts",
"Criteria":{
"$type":"Asi.Soa.Core.DataContracts.CriteriaDataCollection, Asi.Contracts",
"$values":[{
"$type": "Asi.Soa.Core.DataContracts.CriteriaDataCollection, Asi.Contracts",
"Operation":3,
"PropertyName":"LastName",
"Values":["smith"]
}]
}
}]
}
}
Query has optional filter and returns all values even after last name parameter is sent