轻流OA icon

轻流OA

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

通讯录 - 部门 → 获取部门列表

AI-generated

Summary

Retrieve the list of departments from the Qingflow OA address book, optionally scoped to sub-departments of a specified department.

Inputs

  • Dept ID — Specify a department ID to fetch its sub-department list. If omitted, fetches top-level departments.
  • Options — Configure additional request options including batching (concurrent requests) and timeout settings.

Output shape

a list of department records with details as provided by the Qingflow OA API

Supports batching where multiple requests can be made concurrently to improve performance. Timeout can be set to abort slow requests. Errors are returned as item-specific messages if 'continue on fail' is enabled.

Examples

Example 1: Retrieve all top-level departments

Leave 'Dept ID' empty, optionally configure batching to retrieve in parallel.

Example 2: Retrieve sub-departments of a specific department

Set 'Dept ID' to the desired department's ID to fetch its child departments.

Links

Discussion