08/03/2023 03:09 AM
Hello Everyone
Facing an issue : Attachment with no data/records is being sent to the recipients even though analytics returns zero records. How can we stop sending an email with attachment if analytics returns no records?
08/03/2023 03:14 AM
Hi @harishyara
Use below expression in TO field of the Email Template. It will restrict email to be sent in case report return zero results. Replace receiptant email expression in below at highlighted place
<%if (totalRecords.equals(0)) print "NULL" else print "${ownerEmail}" %>