Hi,
Currently I have a custom property in my environment to indicate which customer team a node belongs to. Since we also have mail addresses with basically the same name I thought I could use a Custom Variable as the To mail address but unfortunately it says it's not valid.
So we have the property: Customer_Team which has Results like: Team A, Team B, Team C, etc.
The mail addresses are like: TeamA@Companyname.com, TeamB@Companyname.com, TeamC@Companyname.com, etc.
In the alert action we want to set up a mail action the send out en Email the the Customer Team responsible for that node.
So I changed the variable to SELECT REPLACE ('${N=SwisEntity;M=CustomProperties.Customer_Team}' , ' ', '')+'@companyname.com' with SQL option which resulted in: ${SQL: SELECT REPLACE ('${N=SwisEntity;M=CustomProperties.Customer_Team}' , ' ', '')+'@companyname.com'}
I used "REPLACE" to get rid of the space in between the name.
In the message it can show me the email address fine but it seems that the Recipients "To" field returns an error that the email address is not valid.
Has anyone else also encountered this or maybe some ideas on how to make this work? (We try to avoid making an additional custom property)