How to filter the child object field value using query param(q String) in REST API
Summary
we need to filter the child object field value without consider the header field reference.Content
For Example:
If filter AssetType="Active" means below mentioned response total count will be 2.
{
"items": [{
"id": 1,
"Type": "A",
"AssetDetailsCollection_c": [{
"Id": 300000015796176,
"RecordName": "AD-0000027-200706",
"AssetType": "Active",
}]
},
{
"id": 2,
"Type": "B",
"AssetDetailsCollection_c": [{
"Id": 300000015796177,
"RecordName": "AD-0000027-200707",
"AssetType": "Active",
}]
},
{
"id": 3,
"Type": "C",
"AssetDetailsCollection_c": [{
"Id": 300000015796178,
"RecordName": "AD-0000027-200708",
"AssetType": "InActive",
}]
},
{
"id": 4,
"Type": "D",
"AssetDetailsCollection_c": [{
"Id": 300000015796179,
"RecordName": "AD-0000027-200709",
"AssetType": "InActive",
}]
}],
"count": 4,
"hasMore": true,
"limit": 25,
"offset": 0
}
Tagged:
0