odata_query
Run OData v2 queries to fetch SAP SuccessFactors data, automatically following pagination links, and write the results to a JSON file. Optionally preview records inline.
Instructions
Run an OData v2 query, following __next until exhausted or max_pages.
path is the entity set and may carry query options, e.g. "FOCompany" or "EmpJob?$select=userId,jobCode". Effective-dated entities (EmpJob, Position, FO*, MDF) return ONLY today's time slice unless you pass fromDate=1900-01-01 and toDate=9999-12-31 in params.
Records are written to a JSON file; the tool returns counts, the field names of the first record, and the path. preview>0 additionally returns that many records inline — this may be HR data, so ask for it only when the values themselves are needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| params | No | ||
| preview | No | ||
| max_pages | No | ||
| company_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||