Can a Script be run for all records "on add / on load"?
Will this script run "on add / on load" and send an email to all the records in my application that meet the criteria? Or, will it only apply to the current record?
- if (((zoho.currentdate > input.Added_Time.addDay(10)) && (input.Contacted == "null")) && (input.Hired == "New"))
- {
- sendmail
- (
- To : input.Notification_Email
- From : zoho.adminuserid
- Subject : "Follow Up Required: Recruiting Leads"
- Message : "Dear" + input.Assign_To + ",<br />\n<br />\n" + input.st_Name + " " + input.Last_name + " applied for a position 10 days ago, his/her record has not been updated.<br />\n<br />\nPlease visit the online database <a href=\"http://creator.zoho.com/arightious/cb-pt-leads/view-perma/Leads/24ySBKAC2PkSjBC9XOehMrAybQ6TEzVrQn3FwExUyd4q2q7gJMtf3Vjn3EVxHPxDTuzbmvTS1ZEhgUjKUUz2PR7hbhRuVkGTrqCh\">here</a> to update his/her record.<br />\n<br />\nTo prevent emails like this being sent in the future, simply update the record by clicking "edit" and notating the status.<br />\n<br />\nThank you,<br />\n<br />\nAron<br type=\"_moz\" />"
- )
- }