ce_query
Query the SAP SuccessFactors Compound Employee SOAP API and save each XML payload page to disk for HR data extraction or troubleshooting.
Instructions
Query the EC Compound Employee (SOAP) API and save the payload to disk.
person_id_external / user_id are comma-separated and take precedence over every other filter when set. last_modified_on is an ISO datetime for a delta pull (SAP allows at most 3 months of look-back). With no filter at all this is a full extract, capped by max_pages.
CompoundEmployee SFQL allows only ONE condition on last_modified_on in the WHERE clause — a query with both a lower and an upper bound (last_modified_on>X and last_modified_on<=Y) fails with INVALID_SFQL: Only one condition is allowed. This tool only ever emits the lower bound; apply any upper bound to the returned rows client-side, not by adding a second last_modified_on condition.
last_modified_on's filtering also depends on an SFQL parameter, isNotFirstQuery, that this tool does not currently set: per tenant testing, a query without isNotFirstQuery ignores last_modified_on entirely and returns a full snapshot of the matching window, while isNotFirstQuery=true makes last_modified_on act as a real delta filter. Until this tool exposes that parameter, treat last_modified_on here as a full-window snapshot, not a guaranteed delta — don't rely on it alone to mean "only changed rows".
select_segments defaults to the widely supported COMMON_SEGMENTS. If SF answers INVALID_SFQL naming a segment, that module is not enabled on the tenant — pass a narrower list. Only documented segment names are accepted, and person_id_external / user_id values may contain only letters, digits, space and _ . @ : / + -.
Each queryMore page is written as its own XML file. The tool returns counts and paths only: one employee's payload is ~80 KB of HR data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | No | ||
| max_rows | No | ||
| max_pages | No | ||
| company_id | No | ||
| select_segments | No | ||
| last_modified_on | No | ||
| person_id_external | No | ||
| include_contingent_workers | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||