Skip to main content
September 28, 2016
Question

Trigger on Case object Velocity Script

  • September 28, 2016
  • 2 replies
  • 1787 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Casey_Grimes2
Level 10
September 28, 2016

Hi Billy,

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

September 28, 2016

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

Kenny_Elkington
Adobe Employee
Adobe Employee
September 28, 2016

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

September 28, 2016

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