You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Can you query multiple attributes on a child object?

Received Response


I'm trying to get everyone in a department (workRelationships.assignments.DepartmentId) not everyone who was EVER in the department, combining (workRelationships.assignments.DepartmentId = 1 AND workRelationships.assignments.PrimaryFlag = true) seems to apply them independently to the array, so anyone with any assignment with a departmentid = 1 and any assignment that has a primaryflag= true even if it's not the same assignment.

Content (required):

Version (include the version you are using, if applicable):


Code Snippet (add any code snippets that support your topic, if applicable):

/hcmRestApi/resources/latest/workers?q=workRelationships.PrimaryFlag = true AND workRelationships.assignments.PrimaryFlag = true AND workRelationships.assignments.DepartmentId = 1 &effectiveDate=2022-08-04

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!