Restrict Email Delivery When No Error Records Exist
Summary:
We have a requirement where the extract process displays all the information related to persons. If any person record is missing required values, those records are sent to the HR department through the Email delivery option. The field validations are performed in the XSL file, and the errored details generated from the XSL are used as input for the Excel template. Currently, the mail is being sent even when there are no error records, resulting in an empty Excel file being delivered.
The users have requested that, when there are no error records, the mail should not be triggered.