This method returns the work orders list assigned to each employee.
The method to be used to get the work orders list assigned to the employee is:
GET /api/mytenant/myorganization/maintenance/workorders/getWorkOrdersAssignedToEmployee?version=AAAA&stateKey=002WORKORDER;006WORKORDER&maxRecords=100&assignedTo=user@domain.com&daysLimit=100
The method parameters are optional, however, the method receives the employee to filter WOs. If the parameter maxRecords is not specified, it returns a maximum of 100 records. The logic is the following:
The server returns an answer HttpStatusCode.OK, with the WOs assigned to the employee. 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.