You need to sign in to do that
Don't have an account?

trigger 4
hello
plz help me in this trigger code
If owner of an Account has gone on leave for more than 90 days then type field should be updated with "Former Client".
If owner of an Account has gone on leave for more than 180 days and if the owner has a delegated user then the delegated user should be updated as Owner.
If owner of an Account has gone on leave for more than 180 days and if the owner has no delegated user then type field should be updated with "Deactivated".
plz help me in this trigger code
If owner of an Account has gone on leave for more than 90 days then type field should be updated with "Former Client".
If owner of an Account has gone on leave for more than 180 days and if the owner has a delegated user then the delegated user should be updated as Owner.
If owner of an Account has gone on leave for more than 180 days and if the owner has no delegated user then type field should be updated with "Deactivated".
I guess the best solution is to create a ' Time-Based Workflow Action' instead of a trigger.
https://help.salesforce.com/articleView?id=000005245&type=1
Please mark this as solved if it's resolved and mark as the best answer
Thanks,
Ignacio