The For each record deluge task is used to iterate a particular set of records in a form. The Task Management application illustrates the usage of for each deluge task to iterate records in a form. The application consist of 3 forms.
In the Task management application, the task is to send mail to each staff belonging to a specific module say "Scripting". To perform this action, we have to add the deluge script to WorkFlow --> On Add --> On Success section of the Staff Details form. The sample script mentioned below will iterate through each staff record in the Staff Details form who belong to a Scripting module and send mail to their email id with the specified message.
The code mentioned above iterates through each record in the Staff Details form whose module name is “Scripting” where,
r is the name of the variable that will hold the data (Staff Name) corresponding to each iteration.
The sendmail function mentioned above is used to send an email to the staff Email Id. Here, r.Email_Id, will fetch the email id from the variable r which holds each iteration of a record.
Learn how to install the application to your account - click here.