Provides the data used in Synergist's 'Views' drop down menus
Activity viewlist (for views menu)
Returns a list of saved views (queries). This request returns data that is formatted for use in a drop down selection menu. It returns the view IDs (in the MenuClickAction field) and the default view for the user.
also see Table of views which can also be used to get data regarding views (saved filters)
Parameter | Description | Examples |
---|---|---|
Action | Returns a list of saved queries (views) | action=viewlist |
Parameters described in overview | user=user&password=user&version=3.9 | |
Company | The company context | company=1 |
Type | The data area the call relates to | type=activity |
Response | Returned data | See below |
Example
Request for a list of views
http://<SERVER>/jsonapi/menu.json?action=viewlist&company=1&type=activity&version=3.9&user=user&password=user
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"totalrows": 0,
"totalpages": 1,
"responsemessage": "",
"pagerows": 0,
"pagenumber": 1,
"success": true,
"data": [
{
"MenuClickAction": "",
"MenuDefault": false,
"MenuDescription": "System views",
"MenuExpanded": false,
"MenuLevelName": "System views",
"MenuParentName": ""
}
]
}