Oracle Fusion HCM icon

Oracle Fusion HCM

Consume Oracle Fusion HCM REST API

Actions28

Department → Get Many

AI-generated

Summary

Retrieve a list of departments from Oracle Fusion HCM optionally filtered by department name, with control over the number of results returned.

Inputs

  • Authentication — Choose between Basic Auth or JWT for API authentication; default is JWT (recommended).
  • Return All — Boolean flag to return all matching departments or limit the results.
  • Limit — Specify the maximum number of department results to return, between 1 and 500; applicable only if Return All is false.
  • Filters — Filter results by department name using a 'LIKE' query pattern.

Output shape

a JSON object with a 'results' array of objects, each containing 'name' (department name) and 'value' (organization ID) fields.

The departments are returned in an array under the 'results' key. The maximum number of results is limited by the 'Limit' parameter unless 'Return All' is set to true, which retrieves up to 100 departments by default from the endpoint. The filter supports a 'LIKE' comparison on department names.

Examples

Example 1: Get up to 50 departments without filtering

Set 'Return All' to false and 'Limit' to 50, leave 'Filters' empty.

Example 2: Get all departments with names containing 'Sales'

Set 'Return All' to true and apply filter where 'Name' LIKE 'Sales'.

Links

Discussion