If a Scheduled Report is empty is there an OOTB way of sending an alternate email?

I have some Scheduled Reports. I’d like to know if there is OOTB way of sending a different email than the originally scheduled report, if the report in question has returned no results.

For example, no attachment and a different body of text.

@AdamS229 pyExecuteTask is marked as extension in Pega-ScheduledTask and it’s been specialized in Pega-ScheduledTask-Reporting. That would make it sort of okay to specialize the subclass version in your own ruleset, and let this activity exit if the result count of the report would be equal to zero. The calling activity is pzScheduledTaskProcessor that is final internal, so I don’t see any other extendable rules.

Might want to log an enhancement request here though, I had trouble finding a different hook to implement this kind of functionality.

@BasG0629 I was thinking something similar, seems a pretty viable addition for OOTB. I’ll raise an Enhancement request and see if it gets any traction.