Trigger Token for Change Data Value | Community
Skip to main content
Michael_Florin-2
New Participant
October 24, 2023
Solved

Trigger Token for Change Data Value

  • October 24, 2023
  • 1 reply
  • 1551 views

Hello!

 

I just read that Change Data Value triggers allow for trigger tokens. https://nation.marketo.com/t5/knowledgebase/trigger-tokens-in-flow-steps-render-incorrectly/ta-p/251201

Which is not documented here: https://experienceleague.adobe.com/docs/marketo/using/product-docs/marketo-sales-insight/msi-for-salesforce/features/tabs-in-the-msi-panel/interesting-moments/trigger-tokens-for-interesting-moments.html?lang=en

 

Anyway: This works and I'm happy that I can use trigger.name to find the field that has changed. Is there any way I could also retrieve the former value in that field? And does anybody know if there are more tokens that work for CDV trigger in addition to trigger.name and trigger.trigger name?

Oh, and can I use trigger tokens in Velocity?

 

Thanks!
Michael

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

Hi Michael, 

it's to bad that CDV trigger was not documented. I was not successful in getting more than the mentioned object properties. 

Basically, using "Trigger Objects" is possible in email scripting. But a direct use seems to be possible only for the activities Added to OpportunityOpportunity is Updated, or Added to <Custom Object Name>. In these cases, you can access the properties using  $TriggerObject.<property name>. 
Unfortunately, it seems as if this does not work for other triggers. For those cases, it seems as if we have no other possibility than storing the values in another field and accessing this lead or CPMD field from script. 

This is a bit against the mentioned examples in https://developers.marketo.com/email-scripting/ about testing trigger tokens with Send Sample > Trigger option for emails and the triggers offered in that list. So maybe there are more TriggerObjects for scripts than mentioned.  

Looking forward if someone else did find another solution. 

Best regards
Wolfram


BTW: It seems as if TriggerObject-Tokens do not work afterward, if the recipient uses the {{system.viewAsWebpageLink}} link. 

1 reply

WolframCLotzAccepted solution
New Participant
October 25, 2023

Hi Michael, 

it's to bad that CDV trigger was not documented. I was not successful in getting more than the mentioned object properties. 

Basically, using "Trigger Objects" is possible in email scripting. But a direct use seems to be possible only for the activities Added to OpportunityOpportunity is Updated, or Added to <Custom Object Name>. In these cases, you can access the properties using  $TriggerObject.<property name>. 
Unfortunately, it seems as if this does not work for other triggers. For those cases, it seems as if we have no other possibility than storing the values in another field and accessing this lead or CPMD field from script. 

This is a bit against the mentioned examples in https://developers.marketo.com/email-scripting/ about testing trigger tokens with Send Sample > Trigger option for emails and the triggers offered in that list. So maybe there are more TriggerObjects for scripts than mentioned.  

Looking forward if someone else did find another solution. 

Best regards
Wolfram


BTW: It seems as if TriggerObject-Tokens do not work afterward, if the recipient uses the {{system.viewAsWebpageLink}} link.