Hello Experts:
We want to send an email to managers when LifeCycle State changes from ‘T1’ to ‘A’. (on Rehire)
Note: We have multiple LifeCycle states but we only want to trigger mail when it changes form ‘T1’ to ‘A’.
Is it possible to use the OOTB template of Lifecycle State change for above requirement with some changes ??
I agree with Animesh. The OOTB email template he links to is the correct template for handling this. To expand on what he said about velocity template scripting, you can check out this post that explains how you can use if/else logic in the email subject to control when the email is sent.
In your case, you would probably use the following velocity script in the subject.
#if($oldState == 'T1' && $newState == 'A')Lifecycle state has changed for your employee#{else}#stop#end