轻流OA icon

轻流OA

轻流OA API集成,支持通讯录、任务委托、应用管理、数据操作等功能

通讯录 - 角色 → 获取角色列表

AI-generated

Summary

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.

Links

Discussion