Moka People icon

Moka People

Moka People (HCM 人事系统) API 集成

组织接口 → 组织部门数据

AI-generated

Summary

Fetches department data from the Moka People organization API, optionally filtering by department IDs or codes and enabled status. Supply the API code configured for the “批量-组织架构信息” interface; choose either the ID list or code list, not both.

Inputs

  • apiCode (required) — Interface code configured in Moka People under Settings → External Interface Settings for “批量-组织架构信息”.
  • nodeUidList — Department ID list, up to 200 entries. Provide as comma-separated values or a JSON array. Do not combine with nodeCodeList.
  • nodeCodeList — Department code list, up to 200 entries. Provide as comma-separated values or a JSON array. Do not combine with nodeUidList.
  • haveUsed — Filter by enabled status: 1 for enabled or 0 for disabled. Leave unspecified to omit this filter.
  • returnAll — When enabled, automatically paginate results. When disabled, return up to the Limit.
  • limit — Maximum results when Return All is disabled; defaults to 50, with a UI range of 1–200.
  • options.timeout — Request timeout in milliseconds; 0 means no timeout.
  • options.batching — When Return All is enabled, configure the concurrent request batch size (default 3) and delay between batches in milliseconds (default 1000).

Output shape

A list of department records, emitted as n8n items.

The node runs the operation for each incoming item. Errors stop execution unless Continue On Fail is enabled, in which case an item containing an error message is emitted. The response record fields are not specified in the provided source.

Links

Discussion