Re: Using Email Script Token in Send Alert Flow Step

Anonymous
Not applicable

Using Email Script Token in Send Alert Flow Step

After reading a few discussions, it seems like the Community is saying that custom tokens can be used in Send Alert flow steps. I've created an Email Script token that replaces a sales rep's SFDC user ID with their email: #if (${lead.Sales_Rep__c} == "XXXXX")first.last@sportngin.com. The token works when used as a merge field in an email, but it doesn't seem to work in the Send Alert flow step. Can anyone help me out?

0EM50000000T9Gz.png
Tags (1)
3 REPLIES 3
SanfordWhiteman
Level 10 - Community Moderator

Re: Using Email Script Token in Send Alert Flow Step

Can you point to the discussions where Velocity tokens are said to work in this context? I didn't think so.
Anonymous
Not applicable

Re: Using Email Script Token in Send Alert Flow Step

I didn't mean to upset anyone with my question, but this discussion refers to custom my.tokens being used in Send Alert flow steps. I was hoping to use the Email Script Velocity tokens in this context. If it is not possible, I'll accept that.

https://community.marketo.com/MarketoIdeaDetail?id=08750000000JtFuAAK
SanfordWhiteman
Level 10 - Community Moderator

Re: Using Email Script Token in Send Alert Flow Step

Don't mean to sound peevish, I just can't imagine why it would be possible given when/where Velocity is used. For a requirement like this you could use an Apex trigger to populate a custom field that then syncs over.