Hi,
I send the following POST request to create a scheduled plan for a query
{
"name": "test11",
"user_id": "15",
"query_id": "3V3Tw5Z7Q6gB4cYKrHsqtTRbD5fd4fXt",
"filters_string": "?Brand=&Queue=&Group=&Agent=&Agent+Status=&Channel+type=Email&Channel=",
"scheduled_plan_destination": [
{
"type": "webhook",
"address": "https://d017739ccb7e.ngrok-free.app/api/webhook",
"format": "json"
}
],
"crontab": "*/4 0-22 * * *",
"timezone": "Asia/Singapore"
}
The scheduled plan is successfully created.
However, when the schedule runs, I got this error in the Admin → Schedule History
Invalid filter: Brand\nInvalid filter: Queue\nInvalid filter: Group\nInvalid filter: Agent\nInvalid filter: Agent Status\nInvalid filter: Channel type\nInvalid filter: Channel
I use the same filters_string to create a scheduled plan for a dashboard and that schedule runs fine.
Any idea why the same filters_string does not work for a scheduled plan for a query? How can I fix it?