To ensure that questions get required attention from community members and are NOT left unanswered, it’s important for the author to indicate (by selecting “Yes” or “No” when prompted) whether the question was answered.
For more information, please refer to this announcement explaining best practices for getting answers to questions.
How to GET all active employees from the worker API endpoint
Summary:
Need to GET all active employees from the worker API endpoint, but it is returning active and inactive employees.
Content (please ensure you mask any confidential information):
/hcmRestApi/resources/11.13.18.05/workers?q=(workRelationships.assignments.AssignmentStatusType='ACTIVE') and (workRelationships.assignments.PrimaryFlag=true) and (DateOfBirth is not null)&totalResults=True&limit=25&expand=workRelationships.assignments
Version (include the version you are using, if applicable):
Code Snippet (add any code snippets that support your topic, if applicable):
{
"items": [
{
"PersonId": 300000027235552,
"PersonNumber": "00337524",
"DateOfBirth": "1969-07-25",
"workRelationships": [
{
"assignments": [
{
"AssignmentStatusType": "INACTIVE",
"PrimaryFlag": false,