Flagging used Custom Objects record from Marketo? | Community
Skip to main content
HumlDavid
Level 2
July 4, 2022
Solved

Flagging used Custom Objects record from Marketo?

  • July 4, 2022
  • 1 reply
  • 2165 views

Hello,

I have a use case where I am not sure how to follow, will try to summarize:

We have an internal system where customers can login and send themselves a packing slip (or other documents). It creates a custom object record in Marketo and triggers an email where link is populated via a velocity script (from the custom object). 

 

However when we started to do stress testing the platform UI allows to send multiple requests relatively quickly. Consequently creates custom objects within almost the same time, however trigger campaigns are a bit delayed. = you clicked for yourself 3 packing slips, will get 3 emails => latest link is populated instead of 3 different links. 

 

I am relatively new to velocity scripting. Is there a way to write down (other token) info about "used" records?

Is there a way to "mark" or "flag" processed requests? For example flagging the object which was used and then ignore it when email is populated? Webhook will be slow too...

I cannot think of any other approach but might 

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 Darshil_Shah1

Well, you can use the $TriggerObject to reference the record in the velocity that triggered off the smart campaign, check out this doc. This'll let you focus on the record in the velocity, i.e., reference data in the record using velocity that has trigerred off the smart campaign.

 

Also, if you're not already using, I'd suggest using Added to CO as trigger in your SC.

 

1 reply

Darshil_Shah1
Community Advisor and Adobe Champion
Darshil_Shah1Community Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
July 4, 2022

Well, you can use the $TriggerObject to reference the record in the velocity that triggered off the smart campaign, check out this doc. This'll let you focus on the record in the velocity, i.e., reference data in the record using velocity that has trigerred off the smart campaign.

 

Also, if you're not already using, I'd suggest using Added to CO as trigger in your SC.

 

HumlDavid
HumlDavidAuthor
Level 2
July 5, 2022

Hi Darshil,

Thank you so much, that was exactly what I need, didn't even know this trigger exists.

We just tested it and works as expected + I was able to simplify the code. 

Thanks again.

 

Darshil_Shah1
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
July 5, 2022

Awesome, you're very welcome! Glad that I could help. 🙂