Recommend for rehire flag to restrict rehiring of employee
The requirement is to restrict users to rehire a person if they are indicated to be not eligible for rehire (Recommendation for Rehire flag is set to No when terminated on prior assignment)
Need help if anyone has code snippet to apply on Worker Assignment object data validation rule for fetching the rehire recommendation flag from the last assignment row and apply it for validating the current rehire transaction.
Version (include the version you are using, if applicable):
Code Snippet (add any code snippets that support your topic, if applicable):