Re: Trigger on Case object Velocity Script

Anonymous
Not applicable

Trigger on Case object Velocity Script

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

Trigger.PNG

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.

5 REPLIES 5
Casey_Grimes
Level 10

Re: Trigger on Case object Velocity Script

Hi Billy,

Just a quick question/check: did you specifically add the ! needed for Trigger Objects, i.e., $!{TriggerObject.X2CO_Account__c}?

Anonymous
Not applicable

Re: Trigger on Case object Velocity Script

do i need the ! ? Because i have other Trigger Velocity Script for Opportunities, and is working fine.

Kenny_Elkington
Marketo Employee

Re: Trigger on Case object Velocity Script

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.

Kenny_Elkington
Marketo Employee

Re: Trigger on Case object Velocity Script

When trying to use TriggerObject, are you actually using the Add to Case trigger for the campaign?

Anonymous
Not applicable

Re: Trigger on Case object Velocity Script

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