Filters - Get global filter

API Url

Use it for loading all selected details for the current global filter.

GET
http://localhost:16010/ProMarkREST/rest/General/global-filters

Permissions: user

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

        fieldIdString

Field identifier.

    filtersObject[]

Global filters.

      activeBoolean

Filter enabled/disabled.

      fieldsObject[]

Selected filter fields.

        conditionString

Condition identifier (1=Equals, 2=Does not equal, 3=Begins with, 4=Ends with, 5=Contains, 6=Contains data, 7=Does not contain data).

        valuesString[]

List of selected values.

      idNumber

Unique filter identifier.

      levelNumber

Filter level (0=System, 1=User profile, 2=Personal).

      levelIdoptionalString

Filter owner according to level.

      nameString

Name of the filter.

      optionsObject[]

Selected filter options.

        idString

Option identifier.

        valueString

Option value.

      typeNumber

Filter type (1=Employee, 2=Reason, 3=Account, 4=ProJect, 5=Order/Operation, 6=Workcenter, 7=Terminal). The global filter is always an employee filter.

  messageoptionalObject

Object containing response messages.

    codeNumber

Message code.

    textString

Message text.

    typeString

Type of message.

Allowed values:"warning""info"

Success example:

HTTP/1.1 200 OK
{
"response": {
"data": {
"filters": [
{
"active": true,
"id": 123456789,
"name": "My departments",
"level": 2,
"levelId": "John",
"type": 1,
"fields": [
{
"fieldId": "19",
"condition": "1",
"values": [ "Accounting", "Reporting" ]
}
],
"options": [
{
"id": "1",
"value": "0"
}
]
}
]
},
"errorCode": 0,
"errorMessage": ""
}
}

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data (empty).

  errorCodeNumber

Error code.

  errorMessageString

Error description.