The “Task Management” application demonstrates the usage of the for each list value deluge task that can iterate multiple list values within each record. The application comprises of the following three forms:
The on add ->on success script is executed whenever a record is submitted using the Assign Task form. The following code declares a variable named temp to store the values of tasks assigned and set with null value. The Set variable Deluge syntax is used to create this code.
Iterates through multiple values in Tasks_Assigned lookup field in the Assign Task form, with the specified criteria. The for each list value deluge syntax is used to create this code.
- The criteria will fetch the records whose staff name and Assigned Date is same as the input staff name and date.
- r is the name of the collection variable that will hold the data corresponding to each iteration of the above file name.
Append the temp variable with each task value. Again, the Set variable Deluge syntax is used to create this code.r.Task will fetch this task name from the related Tasks form.
Fetch the record from Staff Details form with the specified criteria and store it in variable named rec. The Fetch records deluge syntax is used to create this code.
The sendmail function is called to send an email to the Emailid of the staff. Here, rec.Email_Id, will fetch the email id from the rec variable and temp will contain the list of tasks assigned to this staff.
Learn how to install the application to your account - click here.