@v-bacao-msft
@Taylor_Becktold
Thanks for the information, I have not found a reference to $filter anywhere! Clearly one of those hidden gems!
I am not querying the Graph API, it's a FreshService API. Does the API endpoint need to support the $filter or is it run against the response?
When I add:
$filter | name eq 'Department 1'
This is returned.
{
"description": "Validation failed",
"errors": [
{
"field": "$filter",
"message": "Unexpected/invalid field in request",
"code": "invalid_field"
}
]
}
For your reference this is an extract of the response I am trying to query/filter
{
"departments": [
{
"description": "",
"custom_fields": {},
"id": 01,
"name": "Department 1",
"created_at": "2019-06-26T07:18:05Z",
"updated_at": "2019-07-30T12:06:04Z",
"prime_user_id": 14000062291,
"head_user_id": 14000062291,
},
{
"description": "",
"custom_fields": {},
"id": 02,
"name": "Department 2",
"created_at": "2019-06-26T07:19:02Z",
"updated_at": "2019-06-26T07:19:02Z",
"prime_user_id": null,
"head_user_id": null,
}
]
}