You need to sign in to do that
Don't have an account?
AnonTestQuest
Trigger question on an object
I need to put a trigger on an a time off request object to pull all "future dated" time off requests (meaning all absence requests that have a future time off date and that have been entered PRIOR to the trigger running) and update the "department" field (on the same object) with the appropriate value for each worker. The department can be found on the user's Worker Record (another custom object). I'm not sure how to go about this. Any help is appreciated!
Thank you for your assistance!
All Answers
If the solution works for you, mark it as a best answer to help others.
Thank you for your assistance!
Do you have the lookup to VanaHCM__Worker__c object on the Absence_Request__c object. If it is then why don't you use the formula field on the Absence_Request__c object to get the Department from VanaHCM__Worker__c, instead of the trigger.
Regards,
Krishna.