Skip to main content
Version: V2 (Ignition 8.1)

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)