Ability to reference Campaign and/or Program Name in Velocity Scripting

Ability to reference Campaign and/or Program Name in Velocity Scripting

I'm currently building out a series of custom objects for the explicit purpose of being used with Velocity to get certain custom elements into emails, but I may have to do a 1:N relationship rather than the 1:1 relationship I would have preferred. As such, I'd like a user-friendly (i.e., not having to go into the email script) way of setting a selector to choose which custom object to reference in the email. I'd like to have a variable set by the Marketo campaign name be the selector for the correct object to reference in the email.

I'm not even sure if this is a reasonable ask with the current scripting setup but it'd make a huge difference.

4 Comments

Hi Courtney,

I gather from your idea that it's impossible to reference other program or campaign tokens from the script either ?

-Greg

And also, would not it be possible to simply use a lead custom field ? You would set the field value in the smart campaign to the {{campaign.name}} token value, before sending the email. Then the script would use the field value to know what custom object entry to use.

-Greg

Oh, I certainly could, but I prefer simpler solutions when they're available. But yes, long story short you can only reference record-related values (whether that's on the lead record itself or any associated objects.)

Community Manager
Status changed to: Open Ideas