Skip to main content
AWmindtree
Level 4
Jun 14, 2021 11:52 AM UTC
Solved

Use Marketo Custom Object tokens in Trigger Campaigns Flow Steps

Hi Marketo Community,
Recently went through one of the new things and wanted to share with the community. 

Use Case- Want to Copy a value of Marketo Custom Object field while Trigger Campaign. 
Solution- This can be achieved by using a Change Data Value Flow Step and using Trigger tokens in the New Value area. 
Where the format of the token should be {{trigger.Custom Object Field Name}}. In the below example it is {{trigger.COField Name 1}} {{trigger.COField Name 2}}

Please Note- This will only work with Trigger Campaigns and work with the Trigger Campaign having a Trigger for the same custom object for which you want the fields in the Flow Step. 
For example- Campaign Smart List- Added to ABC(custom object) 
Campaign flow should be: CDV Attribute: Your Field and New Value should be {{trigger.Name of field under ABC object}}

 

Hope this helps. Feel free to share your suggestions as well, if I am mistaking somewhere.
Thanks 🙂

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
SanfordWhiteman
SanfordWhitemanAccepted solution
User Group Leader
Jun 18, 2021 6:05 PM UTC

Hey @awmindtree - 

 

inspired by your findings, I tested if probably Custom Activities could utilize trigger tokens to write values from the CA to the lead database. And in fact, that works too:

Trigger: ("Responds to Survey" is a Custom Activity that Qualtrics writes into our Marketo)

 

Flow Step: ("Product" is a field on that CA) 

 

 

Result:

 

I think that opens a whole new world for Custom Activities. I was certainly not aware that this was an option.


 


I think with CAs it's always been supported.

Flow support for TriggerObject with COs, though, was not always there.

9 replies

Michael_Florin-2
Level 10
Jun 14, 2021 1:57 PM UTC

Astounding. I have to test that. 🙂

 

Can it be that the trigger field value appears underlined red if the campaign has not yet been activated?

 

And do you know if "Added to Object" is the only trigger this works with? What about "Object is updated"? (these are the only triggers for Custom Objects, right?)

Translate
AWmindtree
Level 4
Jun 15, 2021 4:38 AM UTC

Hi @michael_florin-2 

 

I tested with Added to Object trigger and it was working with it. For Updated, Marketo does not log any activity so perhaps it might not work for update.
Also, I didn't face any scribbled line till the campaign was inactive.

Thanks

Translate
Michael_Florin-2
Level 10
Jun 15, 2021 8:14 AM UTC

Yep, worked for me too!

 

But it seems the CO field you use in your CDV flow step has to have a value. In my first test that field was empty, so the trigger didn't fire.

 

So, thanks for posting this here! This shatters my illusion that Custom Object fields can't be accessed through tokens at all.

Translate