View menus

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)

ParameterDescriptionExamples
ActionReturns a list of saved queries (views)action=viewlist
Parameters described in overviewuser=user&password=user&version=3.9
CompanyThe company contextcompany=1
TypeThe data area the call relates totype=activity
ResponseReturned dataSee 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": ""
    }
  ]
}