SOLVED

Trigger Token for Change Data Value

Go to solution
Michael_Florin
Level 10

Trigger Token for Change Data Value

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/251...

Which is not documented here: https://experienceleague.adobe.com/docs/marketo/using/product-docs/marketo-sales-insight/msi-for-sal...

 

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

1 ACCEPTED SOLUTION

Accepted Solutions
WolframLotz
Level 4

Re: Trigger Token for Change Data Value

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. 

View solution in original post

1 REPLY 1
WolframLotz
Level 4

Re: Trigger Token for Change Data Value

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.