Forum Post: RE: How can we send mails to the respective mailing list in batch class

  • Thread starter Thread starter Godfrey Sorita
  • Start date Start date
Status
Not open for further replies.
G

Godfrey Sorita

Guest
Hi Sudhakar, You can use a 'Data Maintenance' batch job to send emails daily every 8PM. Since this type of batch job is like an object script, you can use rbv_api.runTrigger API to run the 'Send Email' trigger programmatically. Batch jobs will execute to all records from your selected object but you may use JavaScript to run it on selected records only. Please see sample code below: if ("{!email}" == "test@test.com") rbv_api.runTrigger("customer", {!id}, "sendNotification", true); Regards, Godfrey

Continue reading...
 
Status
Not open for further replies.
Back
Top