English
getDepartmentById
About 91 wordsLess than 1 minute
2025-12-16
This method gets department information by department ID.
Syntax: FxUI.organization.getDepartmentById(departmentId)
Parameters
| Parameter | Description | Type | Allowed Values | Default |
|---|---|---|---|---|
| departmentId | Department ID | string, number | — | — |
Example
// 1000 is the department ID
FxUI.organization.getDepartmentById(1000)Return Value
This method returns department information, as shown below:
{
"type": "g",
"id": 1000, // department ID
"parentId": 999999, // parent department ID
"principalId": 1227, // unique identifier of the principal
"name": "Test Department", // department name
"nameSpell": "CESHIBU", // department pinyin
"order": 2, // department order
"createTime": 1524195386700 // creation time
}