In this scenario, I've got a token for customizing the from name and email address that a lead receives based on their contact owner in our CRM (salesforce).
The logic all works, however when reps transition or leave, we mark the lead with an owner of "Open – [Regional Name here]". Normally, the logic I have looks for known "Open" regions, and replaces those with a default value that we set. However, since my logic is looking for exact matches, any NEW open territories have to be manually added to the logic every single time the territory comes open.
The bottom line question: Is there a way to use a "contains" or "starts with" operator within the velocity language used within the tokens?
Any insight would be extremely helpful! Thanks!