English
getEmployeeById
About 88 wordsLess than 1 minute
2025-12-16
This method gets employee information by employee ID.
Syntax: FxUI.organization.getEmployeeById(employeeId)
Parameters
| Parameter | Description | Type | Allowed Values | Default |
|---|---|---|---|---|
| employeeId | Employee ID | string, number | — | — |
Example
// 1000 is the employee ID
FxUI.organization.getEmployeeById(1000)Return Value
This method returns employee information, as shown below:
{
"type": "p",
"mainDepartment": 999998, // main department
"createTime": 1524191770454, // creation time
"email": "fxiaoke@fxiaoke.com", // employee email
"id": 1000, // employee ID
"name": "Fxiaoke Super Administrator", // name
"profileImage": "https://ceshi112.fspage.com/html/fx-libs/1.0.0/assets/images/employee_default_120_120.png", // avatar
"nameSpell": "FENXIANGXIAOKECHAOJIGUANLIYUAN" // name pinyin
}