///////// Accounts Emails ///////
for each account in Account_Certificate[Status == "Draft"]
{
if(counter <= 8000)
{
accountId = account.ID;
reciepents = account.Recipient_Emails.toList();
for each rec in reciepents
{
sendmail
[
from :zoho.adminuserid
to :rec
subject :"Account Certificate"
message :"Account Name: " + account.Account_Name
Attachments :template:Account_Certificate:Account_Certificate accountId as PDF ///// template: <record_template2>: <form_link_name2><record_id_variable2> as <attachment_format> //
]
counter = counter + 1;
}
account.Status="Sent";
}
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter