For more information, please refer to this announcement explaining best practices for getting answers to questions.
Alerts Composer - Can we filter only Employee's current and active HR Representatives?
Summary:
We have custom alert 'Visa Validation after Termination' - and this current filter that we have sends the notification to these HR Representatives that are both current and old representatives.
What we want to achieve is to only send notification to the employee's active and current representatives.
Content (required):
We have custom alert 'Visa Validation after Termination' - and this current filter that we have sends the notification to all HR Representative including the old representatives (regardless if Active or Inactive reps).
Here are the 3 filters existing for this Alert.
(Filter 1) Resource: emps
EXISTS ( SELECT 'X' FROM PER_ALL_ASSIGNMENTS_M PAA, PER_VISAS_PERMITS_F PVP, PER_PERIODS_OF_SERVICE PPS WHERE PAA.PERSON_ID = ${PersonId} AND PAA.PERIOD_OF_SERVICE_ID=PPS.PERIOD_OF_SERVICE_ID AND PAA.PERSON_ID=PPS.PERSON_ID AND PVP.PERSON_ID = PAA.PERSON_ID AND PAA.ASSIGNMENT_TYPE IN ('E','C') AND PAA.ACTION_CODE IN ('TERMINATION','INVOLUNTARY_TERMINATION','MI_SEV','MI_OTH','MI_VOL') AND (SYSDATE BETWEEN PAA.EFFECTIVE_START_DATE AND PAA.EFFECTIVE_END_DATE) AND (PVP.EFFECTIVE_START_DATE <= PAA.EFFECTIVE_START_DATE) AND PAA.ASSIGNMENT_STATUS_TYPE='INACTIVE' AND PPS.ACTUAL_TERMINATION_DATE>=(SYSDATE-8))