This method returns the work orders list filtered according to the following parameters.
The method to be used to get the filtered work orders' list is:
GET /api/mytenant/myorganization/maintenance/workorders/getWorkOrderFilter?version=AAAA&stateKey=002WORKORDER&dateTransition=2021-02-01&maxRecords=100&attachments=true
The method parameters are optional, however, the method returns the creation date, the expected date and the transition date to filter WOs. If the parameter maxRecords is not specified, it returns a maximum of 100 records. The logic is the following:
1st filter
- datetransition: returns all WOs with a transition date after the inserted date
- stateKey: returns all WOs with this transition state, and the WO can be in another state in that moment. Allows to define the list of values separated by “;”
- maxRecords: number of WOs to be returned, this parameter must be an integer, equal or inferior to 200
- version: returns all WOs assigned with a version superior to this parameter, this parameter must be base64. If not specified, the value AAAA will be considered.
- attachments: returns the attachments with the filtered WOs
2nd filter
- date: returns all WOs with a creation date equal or after the inserted date
- expectedDate: returns all WOs with an expected date equal or after the inserted date
- modifiedOn: returns all WOs with a changed date equal or after the inserted date
- stateKey: returns all WOs with these states, and the WO can be in another state in that moment. Allows to define the list of values separated by “;”
- maxRecords: number of WOs to be returned, this parameter must be an integer, equal or inferior to 200
- version: returns all WOs assigned with a version superior to this parameter, this parameter must be base64. If not specified, the value AAAA will be considered.
- attachments: returns the attachments with the filtered WOs
The server returns an answer HttpStatusCode.OK, with the filtered WOs. If the parameter maxRecords is specified and the value is equal or inferior to 200, it returns the number of records. If the parameter value is higher than 200, it returns an error message.