Hello, I am trying to create a velocity script that trigger on Case object, but it looks like script has the CaseContactRole append to the code
I tried ${TriggerObject.X2CO_Account__c} but it does not work. Any idea how can i trigger base on a field in Case object? The campaign that uses this script is trigger on "Added to Case", just in case you need the information.
Hi Billy,
Just a quick question/check: did you specifically add the ! needed for Trigger Objects, i.e., $!{TriggerObject.X2CO_Account__c}?
do i need the ! ? Because i have other Trigger Velocity Script for Opportunities, and is working fine.
The bang is not a requirement for anything. It simply differentiates between normal and silent notation. If you include the bang, then it is silent notation, where the value will not be displayed if it is empty/null.
When trying to use TriggerObject, are you actually using the Add to Case trigger for the campaign?
no, the script will be in an email to dynamincally populate information in the email. The campaign it self is a Trigger campaign, so the trigger script should work, but i think the script need to be set up differently because is a Custom object, Case object