I have made an automation which sends email of a visualization . Now i want to trigger email only when there is data in that visualization . Is it possible to do so if yes and then please let me know.
Asked
Active
Viewed 379 times
1 Answers
0
There is a way in which this is possible but it's fairly convoluted.
- Create an Automation job file which has the 'Open analysis from Library' step (link)
- Schedule it however you/your organization usually schedule Spotfire automations. Here's how to schedule it using Windows Task Scheduler: link
- Once you have this set up, create an IronPython script within Spotfire which checks the underlying datatable: data check
- If data exists, send email: HTML email
- Since you're working with a visualization, you might have to google a bit to modify the code to export the image and then create a MIMEImage object which will then be sent with the email.

longisland21
- 21
- 4