SOLVED

Simplified company name for token (removing inc. etc)

Go to solution
Darrell_Alfons2
Level 10 - Champion Alumni

Is there an easy way to have a token for a simplified company name?

So Acme Inc will be "Acme".

My first thought is custom field called Simplified Company Name but I will have to fill that in manually.

Thanks!

1 ACCEPTED SOLUTION
SanfordWhiteman
Level 10 - Community Moderator

Figuring out a universally accurate algorithm for such a thing is basically impossible (how do you know that Advanced Micro Devices goes by "AMD" and not "Advanced"?). But if you want to give it your best shot for output in an email, Velocity can do it as well as any language (since you can use Java string methods) albeit wordily.

View solution in original post

3 REPLIES 3
SanfordWhiteman
Level 10 - Community Moderator

Figuring out a universally accurate algorithm for such a thing is basically impossible (how do you know that Advanced Micro Devices goes by "AMD" and not "Advanced"?). But if you want to give it your best shot for output in an email, Velocity can do it as well as any language (since you can use Java string methods) albeit wordily.

Anonymous
Not applicable

is there a way to remove the URL of the populated token (company name) without velocity?

SanfordWhiteman
Level 10 - Community Moderator

As Sydney mentioned on the other thread, Company Name doesn't typically have a URL in it (though it can). In any case there are only 2 ways to perform this kind of text manipulation:

• Velocity

• A webhook (i.e. JS, if using a flexible webhook engine)