English
getDepartmentsByIds
About 139 wordsLess than 1 minute
2025-12-16
This method gets department information by department IDs.
Syntax: FxUI.organization.getDepartmentsByIds(departmentIds)
Parameters
| Parameter | Description | Type | Allowed Values | Default |
|---|---|---|---|---|
| departmentIds | Department IDs | array | — | — |
Example
// [1000,1011] is the set of department IDs
FxUI.organization.getDepartmentsByIds([1000,1011])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
},{
"type": "g",
"id": 1011, // department ID
"parentId": 999999, // parent department ID
"principalId": 1227, // unique identifier of the principal
"name": "swj Test Department-01", // department name
"nameSpell": "swjCESHIBUMEN-01", // department pinyin
"order": 7, // department order
"createTime": 1524213810500 // creation time
}]