Lightswitch send email after a period of time -
i trying send email after 1 hour particular event example if user hasn't completed job. have logic , works on updating method
if (datetime.now >= entity.starttime.value.addminutes(5) && entity.status.description != "onsite work complete" && entity.project.sendjobdelayemail == true) { mailhelper.sendmail(string.format("{0}\\{1}", templatepath, "sla.html"), @"myemail", null, string.format("job {0} has not been completed yet", entity.jobno), replacements); }
how need work away saving pipeline example: if user logged off or isn't in entity.
Comments
Post a Comment