suggestions for token use in subject alert | Community
Skip to main content
Tracy_Boesken
New Participant
August 4, 2022
Solved

suggestions for token use in subject alert

  • August 4, 2022
  • 1 reply
  • 3184 views

Hello community,

An internal request from our support department asked if the Marketo email alert's subject line  (they receive - triggered when someone requests support on our contact us form) can contain a unique identifier (of sorts) because the subject carries with the support ticket for the life of the ticket. Currently, I have the requester's full name token in the subject and tried using the comments token but it makes it ridiculously long. Marketo support verified there is not a way to limit the character amount returned in a token.

Suggestions for what could take its place?

Thanks,

--Tracy

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

You can use velocity script to display first x characters in the email. The below script displayes the first 20 characters in the "Comments" field.

 

#set( $first20chars = $display.truncate($lead.Comments,20,"") ) ${first20chars}

 

 

Reference - https://nation.marketo.com/t5/product-discussions/trim-string-to-x-characters-in-velocity/m-p/297841/highlight/true#M167841

 

1 reply

Darshil_Shah1
Darshil_Shah1Accepted solution
Community Manager
August 4, 2022

You can use velocity script to display first x characters in the email. The below script displayes the first 20 characters in the "Comments" field.

 

#set( $first20chars = $display.truncate($lead.Comments,20,"") ) ${first20chars}

 

 

Reference - https://nation.marketo.com/t5/product-discussions/trim-string-to-x-characters-in-velocity/m-p/297841/highlight/true#M167841

 

SanfordWhiteman
New Participant
August 4, 2022
So frustrating that Support would say it can't be done when, as Darshil shows, it obviously can!