The CreatorCon Call for Content is officially open! Get started here.

Sending scheduled report to groups "dynamically" based on report content?

mechamberlain
Mega Expert

Hello.   I'm wondering if anyone has tackled this previously.   Here's the scenario...

I have the need to send a scheduled report to one or more Groups depending on the results in the report.   For example:

This report creates a list of Application CI's that have no Description on them.   I would like this to run as a "Scheduled Report" and have the results sent automatically to all of the Assignment Groups on the CI's listed in the report.   So the example report would be sent to everyone in the Amsterdam, Boston, and Austin groups.   I know how to schedule reports, it's the sending to the target groups I struggle with.

Not sure if this can be done, but wondering if anyone's tackled this.   Thanks for your time and attention!

CI Sample Report.jpg

9 REPLIES 9

Mike Allen
Mega Sage

I have not tried it with this, but I bet you can create a script include that gathered the required email addresses, then called it in the scheduling of it, like this:



find_real_file.png


Never mind... You cannot do that at all.   I was basing my assumption off of the way client templates work, but this is obviously not true for the scheduled reports.   I will look for another solution.


OK, I did it, but it isn't elegant.   I put a business rule on the email table that looked for a specific subject from the Scheduled Report (you can trigger it off anything, really):



find_real_file.png



find_real_file.png



Then had a script include:



find_real_file.png



And it did what I wanted.



find_real_file.png



find_real_file.png



My queries are simplistic, but it worked.   Just change the queries up to what you want to get the email addresses.


Mike,



That definitely works as you describe, assuming that the groups' "Group email" attributes are populated.   It does not quite get all the way to where I need to go...but I think I can build off if it.   Thank you VERY MUCH!



The result I'm going for is to have the recipients list be all of the individual members' email addresses of the target groups, not just the "Group email" of the group.   I'll try to figure that one out.   Your response was very helpful!