Filtering the Response
- 05 Dec 2022
-
DarkLight
-
PDF
Filtering the Response
- Updated on 05 Dec 2022
-
DarkLight
-
PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Not all systems provide filtering capabilities.
- The adapter will filter the response data based on dynamic criteria provided in the request.
- The filter string is a JSON Query used to filter the incoming data. Since the filter is in the request object it can be set-up on a request-by-request basis.
- This param is used to request that a system return all the devices that start with “ABC”.
Example: Filtering a response.
const reqObj =
payload: { garbage: 'need since post' },
uriPathVars: [groupId, deviceId],
uriQuery: { name: 'anyname' },
uriOptions: { page: 2 },
addlHeaders: { audit: 'turnOn' },
authData: { domain: 'abc' },
callProperties: {
stub: true,
request: {
attempt_timeout = 60000
}
},
filter: '[*name=abc]',
priority: 1,
event: 'giveMeMyData'
};
Was this article helpful?