Learn about Redwood and be one of the first to join the conversation

Visit Redwood Community
How to filter the child object field value using query param(q String) in REST API — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to filter the child object field value using query param(q String) in REST API

Received Response
41
Views
5
Comments
edited Oct 23, 2020 3:21PM in Sales 5 comments

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
}

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!