Skip to main content

system.mes.personnel.getAllDepartments

Description

Retrieves a list of all Personnel Department records in the system.

Permissions

This method requires the PERSONNEL.READ.GET permission.

Syntax

system.mes.personnel.getAllDepartments()

Parameters

ParameterTypeDescription
None-This method does not take any parameters.

Returns

Returns a list of JSON objects representing all departments.

Code Examples

# Retrieve all departments
allDepartments = system.mes.personnel.getAllDepartments()

# Output the list of departments
print(allDepartments)