Simplified company name for token (removing inc. etc) | Community
Skip to main content
Darrell_Alfons2
Level 10
May 9, 2017 4:48 AM UTC
Solved

Simplified company name for token (removing inc. etc)

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!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
May 9, 2017 5:19 AM UTC

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.

3 replies

SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
May 9, 2017 5:19 AM UTC

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.

Translate
Dec 21, 2017 10:06 AM UTC

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

Translate
SanfordWhiteman
Level 10
Dec 21, 2017 3:15 PM UTC

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)

Translate