Model Overview
- Standard User model object
- Standard Department model object
UserBuilder
Expression
Input Parameters
Return Value
Example
DirectorBuilder
Expression
Input Parameters
- Parameter 1: The userid that identifies the target user. Pass "" to use the current signed-in user.
- Parameter 2: level. Returns the level-th manager. Only valid when level >= 1.
Return Value
- Standard User model object of the manager: [{User object},{User object}]
Example
DeptBuilder
Expression
Input Parameters
Parameter 1 (three modes):- No parameter: the direct department of the current signed-in user.
- userid: the direct department of the specified user ID.
- Single-select member component: the direct department of the user referenced by that member component.
Return Value
- Standard Department model object: [Department object, Department object]. A user can belong to multiple departments at the same time.
Example
GetObjectField
Expression
Input Parameters
- Parameter 1: The standard JsonObject to read from.
- Parameter 2: fieldKey. The first-level attribute key of the object in parameter 1.
Return Value
- The value that corresponds to the object’s attribute key. Defaults to Text type.
Example
GetArrayItem
Expression
Input Parameters
- Parameter 1: Standard JsonArray type.
- Parameter 2: n. Returns the n-th data unit object in the array.
Return Value
- The n-th data unit in parameter 1. The type may be JsonObject or JsonArray.
Example
Example member component data:[{“label”:“John (Employee ID 11)”,“key”:“userid123”},{“label”:“Mary (Employee ID 22)”,“key”:“userid124”}]