We use a lot of "Send an email/page" actions in alert triggers and resets. I want to use a SQL query to choose the email address for the alert message. Right now, I can't use a SQL statement that contains a function, like this one:
${SQL: SELECT IsNull(NullIf(ACP.AlertEmail,''),N.AlertEmail) FROM APM_ApplicationCustomProperties ACP INNER JOIN APM_Application A on A.ID=ACP.ApplicationID INNER JOIN NodesCustomProperties N on A.NodeID=N.NodeID where ACP.ApplicationID='${N=SwisEntity;M=ApplicationID}'}That is, I want my configuration to look like this:

It looks like the address parser won't accept the open and close parentheses characters. Please refine the address validation function to let me put any valid SQL in there.
For bonus thanks, give us the "Insert Variable" button for the email address box so we can search for any custom properties in which we might have stored additional email addresses.