Forum Discussion
Ashwin17
Oct 12, 2021Copper Contributor
Send Filtered results from API
I am fetching results from Graph API (Get schedule) which returns results in this schema
{
"type": "object",
"properties": {
"@@odata.context": {
"type": "string"
},
"value": {
"type": "array",
"items": {
"type": "object",
"properties": {
"scheduleId": {
"type": "string"
},
"availabilityView": {
"type": "string"
},
"scheduleItems": {
"type": "array",
"items": {
"type": "object",
"properties": {
"status": {
"type": "string"
},
"start": {
"type": "object",
"properties": {
"dateTime": {
"type": "string"
},
"timeZone": {
"type": "string"
}
}
},
"end": {
"type": "object",
"properties": {
"dateTime": {
"type": "string"
},
"timeZone": {
"type": "string"
}
}
}
},
"required": [
"status",
"start",
"end"
]
}
},
"workingHours": {
"type": "object",
"properties": {
"daysOfWeek": {
"type": "array",
"items": {
"type": "string"
}
},
"startTime": {
"type": "string"
},
"endTime": {
"type": "string"
},
"timeZone": {
"type": "object",
"properties": {
"name": {
"type": "string"
}
}
}
}
}
},
"required": [
"scheduleId",
"availabilityView",
"scheduleItems",
"workingHours"
]
}
}
}
}
The result set returns Scheduled Items with different status like "Busy", "Tentative", "oof", etc.
I want only the Scheduled Items which have the "Status" set to "oof". Is there any way to fetch only the Scheduled Items with oof Status and filter out the rest right through the API?
No RepliesBe the first to reply