ProReport - Get report filters

API Url

Will return the filters supported by the specified report.

GET
http://localhost:16010/ProMarkREST/rest/ProReport/reports/{id}/specifications/filters

Permissions: user

Path parameters

FieldTypeDescription
idString

Report unique identifier.

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    filterSpecObject[]

Filter specifications

      balanceTypeoptionalObject[]

Balance type

        defaultNumber

Default balance type

        optionsObject[]

Balance type options

          descriptionString

Balance type description

          idNumber

Balance type id (1=Latest closed period, 2=Current and future periods, 3=Oldest open period, 4=Current period, 5=A given cutoff time )

      filterTypeNumber

Filter type (1=Employee, 2=Reason, 3=Account, 4=ProJect, 5=Order/Operation, 6=Workcenter, 7=Terminal).

      reportIdString

Report unique identifier.

      showFromoptionalBoolean

Show "Period start". Only valid for "Time" filter, aka period selection.

      showTooptionalBoolean

Show "Period end". Only valid for "Time" filter, aka period selection.

  messageoptionalObject

Object containing response messages.

    codeNumber

Message code.

    textString

Message text.

    typeString

Type of message.

Allowed values:"warning""info"

Success example for 'AccBalance03':

HTTP/1.1 200 OK
{
"response": {
"filterSpec": [
{
"reportId": "AccBalance03",
"filterType": 3
},
{
"reportId": "AccBalance03",
"filterType": 1
},
{
"reportId": "AccBalance03",
"filterType": 0,
"showFrom": true,
"showTo": true
}
],
"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.