Job for mail alert..
mail alert
public void EmailAlertForBenefitEnrollment(HcmWorkerRecId _worker)
{
SysEmailId sysEmailId ='Deduction' ;
Map mappings;
str recepient;
HcmWorker worker;
worker = HcmWorker::find(_worker);
if (worker)
{
recepient = worker.email();
mappings = new Map(Types::String,Types::String);
mappings.insert("@SYS54564",worker.name());
SysEmailTable::sendMail(sysEmailId,
SysEmailTable::find(sysEmailId).DefaultLanguage,
recepient,
mappings,
"",
"",
true,
curUserId(),
true);
}
}
No comments:
Post a Comment