SSRS 2008 Data Driven Subscriptions and Alerts


A use case has been presented where users wish to receive email notification of certain records matching various criteria. Additionally, the notification subscription should only notify the user if records exist matching the criteria. The notification via subscriptions should only happen once for any given record.

This use case is unique since the typical approach is to create a report with criteria parameters and then use a daily/weekly/etc timed subscription to run the report and email to the users. This methodology sends the report to the users even if no records match the actual report run-time criteria. Also, this may allow the report to keep a particular record in a report for as long as the record meets the criteria, and thus doe not fulfill the “one-time” only notification desired above.

To address this use case we are investigating the use of data driven subscriptions for a solution. The concept is to use a subscription history table that records all records for which notifications are sent to users. Additionally, the query driving the report will look at this table to determine if any new records match the other reporting criteria. If not, the email distribution will be nulled, to keep users from being notified of no matching records.

I would love to hear other suggestions on how to create this type of report notification/alerting. Again we want to send notification one-time per matching record, regardless if the record shows up multiple times in the raw report criteria results. And, we want nothing to be sent to the users if no matching records exist.

Blessings

Popularity: 14% [?]

About Tom

Christ follower, husband, father, technology and photography enthusiast. Attempting to live life out as a light in this world and stumbling at times in this fallen world. Got a topic you want to have me look into? Did I miss something in a post? Let me know. Just add a comment below.