Actions54
- 通讯录 - 成员 Actions
- 通讯录 - 部门 Actions
- 通讯录 - 角色 Actions
- 通讯录 - 管理员 Actions
- 通讯录 - 子管理员 Actions
- 轻流应用接口 - 应用管理 Actions
- 数据内容 - 应用数据 Actions
- 数据流程接口 - 流程操作 Actions
- 其他 Actions
- 任务委托 Actions
- 高级设置 Actions
通讯录 - 角色 → 获取角色列表
AI-generatedSummary
Retrieve a list of roles from the Qingflow OA address book with optional batching and timeout settings.
Inputs
- Options — Customize the request with optional parameters such as batching and timeout.
- Options.batching.batch.batchSize — Set the number of concurrent requests per batch when batching is enabled; defaults to 50, with 0 treated as 1.
- Options.batching.batch.batchInterval — Set the interval in milliseconds between batches; 0 disables this delay.
- Options.timeout — Set a timeout in milliseconds for waiting on the server response headers; 0 disables timeout.
Output shape
a list of roles represented as JSON objects
The response returns an array of roles fetched from the Qingflow OA service. If batching is enabled, requests are made concurrently respecting the batch size and interval settings. Errors during execution can be returned inline if 'Continue On Fail' is enabled; otherwise, they throw.
Examples
Example 1: Standard role list retrieval
No options set; retrieves roles sequentially.
Example 2: Concurrent batched role retrieval
Batching enabled with specific batch size and interval for parallel requests.