If you are unable to create a new account, please email bspsoftware@techdata.com

Author Topic: Email a report ONLY IF it has rows  (Read 5215 times)

Offline Sans

  • Full Member
  • ***
  • Join Date: Oct 2013
  • Posts: 34
  • Forum Citizenship: +0/-0
Email a report ONLY IF it has rows
« on: 08 Oct 2019 07:43:40 am »
Hi to all

I've this simple problem:
- we have a report that actually runs on a scheduled basis and sends an email to 6 people eachtime it runs.
- Since the report has filters it could happen that an output with "No Data" is produced
- we'd like to send the email only if the report, when runs, is producing valid rows

How to manage this condition in Event Studio ??

Thanks
« Last Edit: 08 Oct 2019 07:45:31 am by Sans »

Offline Francis aka khayman

  • Statesman
  • ******
  • Join Date: Jun 2009
  • Posts: 548
  • Forum Citizenship: +26/-4
    • CognosM
Re: Email a report ONLY IF it has rows
« Reply #1 on: 08 Oct 2019 08:47:41 am »
count rows? does the report have a measure? you can check the total(xx) <> 0

Offline adam_mc

  • Statesman
  • ******
  • Join Date: Mar 2012
  • Posts: 311
  • Forum Citizenship: +15/-0
Re: Email a report ONLY IF it has rows
« Reply #2 on: 08 Oct 2019 11:51:27 am »
Use the burst feature - In that way you won't need Event Studio at all.

If the report has rows, create a burst list of the email recipients.
If the report has no rows, create an empty burst list.

Use the burst list to control the recipients, it will in effect try and send the report to no one if there is no output.
If I remember correctly I believe you will get a warning in the report run history that it tried to send it with an empty burst list.

Hope this helps,
Adam.

Offline ckapark

  • Associate
  • **
  • Join Date: Oct 2020
  • Posts: 2
  • Forum Citizenship: +0/-0
Re: Email a report ONLY IF it has rows
« Reply #3 on: 03 Nov 2020 05:14:45 pm »
How do you configure it to the count the rows?

I am very new to this product - so detailed instructions would be greatly appreciated!!

Kathleen