I want to configure an Alert Action which will send an email when, for example, a node goes down. Each node has a Custom Property that lists the department responsible for the node. I want to configure a single Alert Action that will send an email alert to the appropriate email address for that department. I've seen that I can use a variable for an email address. However I don't want to add *another* Custom Property for my nodes that will contain the email address; the email address is tightly coupled to the department. What I want is some way to use the "department" Custom Property and resolve it into the appropriate email address for that department.
I've thought of one or two possibilities but they all seem rather complex. I've considered creating a custom table with one field for departments and one for the email addresses. I'd use it in a SQL Variable, joining the custom table to the NodesCustomProperties table through the department Custom Property to get the email address. Maintaining that custom table would be difficult, though. I've considered using a temporary table, built in the SQL Variable itself, however that would be awkwardly complex as well, and result in a temporary table being built for every execution of the Alert, which seems like a sledgehammer approach. Last option, of course, would be to create that additional Custom Property for every node.
Has anyone done this before? Does anyone have any alternate suggestions?