Skip Navigation
Expand
  • Advanced SearchOpens new dialog
    Enter plus (+) or minus (-) signs in search terms to make a word required or excluded
    Search Tips
    Filter by product
    Filter by category
REST API menu filter with /analyticsReportResults endpoint
Answer ID 12424   |   Last Review Date 09/28/2022

Why is my menu type filter not working for my analyticsReportResults REST request? 

Environment: 
 
Connect REST API
 
Resolution:
 
If you are passing a menu type filter in your /analyticsReportResults REST Request, the ID of the menu choice must be passed as a numeric string in the filter.  For example, if your report is built on the incidents table and you need to filter by incident status and specifically the Solved status, your JSON body would look similar to the following where the value being passed for the Solved status is a numerical string:
 
{
    "id": {report id},
    "filters": [
        {
        "name": "status",
        "values": "2"
        }
    ]
}
 
There is an example in the API documentation on how to use analytics filters as found here.