To extract an employee’s oldest son in a Workday integration, build a True/False Condition on the Dependent business object to match the relationship and exclude blank birth dates, then reference it in an Extract Single Instance (ESI) field on Worker sorted by Date of Birth Ascending with First occurrence. To extract all dependents whose age falls within a specific age range, compute age on Dependent with a Date Difference field (or use the delivered Age field), filter the lower and upper bounds in a True/False Condition, and return the matching set on Worker with Extract Multi-Instance (EMI) using Operation Type Subset.
Because Dependents on the Worker business object is a one-to-many (1:M) multi-instance field, both patterns start on Dependent to evaluate each record individually and then step up to Worker to pick either one instance or a filtered list.
1. Extract an employee’s oldest son (ESI chain)
This chain returns one Dependent record per worker and optionally pulls a specific attribute (such as Legal Name or Date of Birth) onto the Worker row for an EIB custom report or Core Connector field override.
| Step | Field Name (Example) | Business Object | Function | Key Settings |
|---|---|---|---|---|
| Step1 | Field Name (Example)CF TF Dependent Is Son |
Business ObjectDependent |
FunctionTrue/False Condition |
Key SettingsRelationship filter + Date of Birth Is not empty |
| Step2 | Field Name (Example)CF ESI Worker Oldest Son |
Business ObjectWorker |
FunctionExtract Single Instance |
Key SettingsSource: Dependents; Sort: Date of Birth Ascending, First occurrence |
| Step3 | Field Name (Example)CF LRV Oldest Son DOB |
Business ObjectWorker |
FunctionLookup Related Value |
Key SettingsLookup Field: CF ESI Worker Oldest Son; Return Value: Date of Birth |
Step 1: Create the filter condition on Dependent
Open the Create Calculated Field task and configure a True/False Condition on the Dependent business object. How you identify a son depends on how your tenant maintains Relationship values:
- If your tenant has a gender-specific relationship value (
Son):Relationship|In the selection list|Value specified in this filter|SonAndDate of Birth|Is not empty
- If your tenant uses
ChildplusGender:Relationship|In the selection list|Value specified in this filter|ChildAndGender|In the selection list|Value specified in this filter|MaleAndDate of Birth|Is not empty
Add any extra eligibility criteria required by the receiving vendor (for example, Active or benefits coverage status) to this same condition so ineligible dependents are excluded before sorting.
Step 2: Create the Extract Single Instance field on Worker
Create a second calculated field on the Worker business object using the Extract Single Instance function:
- Source Field:
Dependents - Condition:
CF TF Dependent Is Son - Sort Field:
Date of Birth - Sort Direction:
Ascending - Instance to be Returned:
First occurrence
Verify the sort direction before testing. An earlier birth date (such as 2008-03-14) sorts before a later birth date (2016-09-22), so Ascending with First occurrence returns the oldest matching dependent. Switching the direction to Descending returns the youngest.
Step 3: Return individual fields with Lookup Related Value
CF ESI Worker Oldest Son returns a single Dependent object instance rather than a text or date value. If your EIB custom report or Core Connector: Worker (CCW) Field Override needs flat columns such as Name or Date of Birth on the Worker object, create one Lookup Related Value field on Worker per required attribute:
- Lookup Field:
CF ESI Worker Oldest Son - Return Value:
Date of Birth(orDependent Name/Legal Name)
In an EIB backed by a Custom Report, you can alternatively place CF ESI Worker Oldest Son in the column’s Business Object selector to pull multiple dependent fields without creating a separate LRV field for each column.
2. Extract dependents within an age range (EMI chain)
When an integration needs every dependent between two ages (for example, 18 through 26 for carrier eligibility or student verification), use Extract Multi-Instance instead of Extract Single Instance so Workday returns the full matching set rather than stopping at one dependent.
| Step | Field Name (Example) | Business Object | Function | Key Settings |
|---|---|---|---|---|
| Step1 | Field Name (Example)CF DD Dependent Age in Years |
Business ObjectDependent |
FunctionDate Difference |
Key SettingsStart: Date of Birth; End: Today (or effective date); Return: Years |
| Step2 | Field Name (Example)CF TF Dependent Age 18 to 26 |
Business ObjectDependent |
FunctionTrue/False Condition |
Key SettingsDate of Birth Is not empty + >= 18 + <= 26 |
| Step3 | Field Name (Example)CF EMI Worker Dependents Age 18 to 26 |
Business ObjectWorker |
FunctionExtract Multi-Instance |
Key SettingsSource: Dependents; Operation Type: Subset; Condition: Step 2 |
Step 1: Calculate age on Dependent (Date Difference vs delivered Age)
Workday delivers an Age field on the Dependent business object that reflects age as of the current date. Use the delivered Age field if your integration always evaluates age on the execution date.
Create a Date Difference calculated field on Dependent instead whenever the receiving system requires age as of a specific cutoff (such as the report effective date or plan year start):
- Start Date Field:
Date of Birth - End Date Field:
Today,Report Effective Date, or a Build Date calculated field for a fixed plan-year cutoff - Return Value:
Years(Workday rounds Date Difference results down to the nearest whole number, which matches completed years of age) - Ignore Lower Level Date Components: Leave unchecked. Checking this box compares calendar years only and ignores month and day, which adds a year before a dependent’s actual birthday.
- Return Zero on Error: Leave unchecked unless you need numeric zero for downstream math. If checked, a blank
Date of Birthreturns0and will falsely match any range that starts at0.
Step 2: Create the age range True/False Condition on Dependent
Create a True/False Condition on the Dependent business object with all rows joined by And:
Date of Birth|Is not emptyCF DD Dependent Age in Years(or deliveredAge) |Greater than or equal to|Value specified in this filter|18CF DD Dependent Age in Years(or deliveredAge) |Less than or equal to|Value specified in this filter|26
Adjust the upper operator to Less than if your eligibility rule ends on the dependent’s 26th birthday rather than including age 26. If you also need to restrict by relationship (for example, children only), add Relationship In the selection list Child to this same condition.
Step 3: Create the Extract Multi-Instance field on Worker
Create a calculated field on the Worker business object using Extract Multi-Instance:
- Source Field:
Dependents - Operation Type:
Subset - Condition:
CF TF Dependent Age 18 to 26 - Sort Field (optional):
Date of Birth, Sort Direction:Ascending
Setting a sort field on the EMI keeps the order deterministic from oldest to youngest across integration runs. In an EIB custom report, assign CF EMI Worker Dependents Age 18 to 26 as the Business Object on the dependent columns so the XML output emits one repeating group per matching dependent.
Common pitfalls in EIB and Core Connector integrations
- Blank Date of Birth sorting first: Without
Date of Birth Is not emptyin yourTrue/False Condition, a dependent with a missing birth date can sort ahead of populated dates in anAscendingESI, returning the wrong person. InDate Difference, enabling Return Zero on Error turns a blank birth date into0, pulling that record into any0–Nage range. - Twins or identical birth dates:
Extract Single Instancesupports a single sort field and always returns exactly one instance (First occurrence). If an employee has twin sons with the sameDate of Birth, Workday returns one of them based on internal instance order. If the downstream system requires every tied dependent, useExtract Multi-Instanceinstead and handle selection or grouping in XSLT or Studio. - Effective date drift: Delivered
AgeandTodayevaluate against the run date, which changes results on retroactive reruns or future-dated open enrollment files. AnchorDate Differenceto the report effective date or aBuild Datecutoff when carrier eligibility is tied to a plan date. - Core Connector: Worker (CCW) vs EIB output shape: An EIB custom report can expose an
Extract Multi-Instancefield directly as repeating XML nodes. In Core Connector: Worker, flatWorkerField Overrides work cleanly with single-instanceLookup Related Valuefields (like the oldest son chain), while multi-instance dependent filtering is better handled through the connector’s delivered Dependent Data section or an Integration Field Override Service scoped to the dependent object.