Get Started with Redwood for Oracle Cloud HCM Begin Now
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. (newly added) Please note that it is also important to respond to EACH comment your question receives. Your Yes or No response ensures an accurate status for your question.
For more information, please refer to this announcement explaining best practices for getting answers to questions.
For more information, please refer to this announcement explaining best practices for getting answers to questions.
Custom criteria (SQL) does not return the desired records.
Hi,
We are using the below Custom Criteria (SQL) to fetch only the Contractors, restricting access for a custom role, but we are able see former employees, where those employees are now Contractors. Can you please advise.
EXISTS (SELECT 1 FROM PER_ALL_ASSIGNMENTS_M ASG,PER_PERIODS_OF_SERVICE PS
WHERE ASG.ASSIGNMENT_TYPE ='C'
AND ASG.SYSTEM_PERSON_TYPE='CWK'
AND ASG.EFFECTIVE_LATEST_CHANGE='Y'
AND TRUNC(SYSDATE) < ASG.EFFECTIVE_END_DATE
AND PS.PERIOD_OF_SERVICE_ID=ASG.PERIOD_OF_SERVICE_ID
AND (ASG.ASSIGNMENT_STATUS_TYPE IN ('ACTIVE','SUSPENDED') OR (ASG.ASSIGNMENT_STATUS_TYPE IN ('INACTIVE')))
0