How to trigger email only in case of error records
HI All,
We have report currently which will send email with excel attachment in case of any error records that are being imported from the files from a vendor.
There are days when there are no error records but the bursting still happens with an empty excel. Is there any way to trigger the email with attachment only in case of error records?
Date parameter is passed to the Concurrent Request
SELECT EDIS.DOCUMENT_NUMBER
,TO_CHAR(RACT.CREATION_DATE,'DD-MON-YY') INVOICE_DATE
,EDIS.DOCUMENT_STATUS
,EDIS.REASON
,EDIS.STATUS_TYPE
,TO_CHAR(EDIS.ISSUE_DATE,'DD-MON-YY')"ISSUE_DATE"
,EDIS.COUNTRY