Simplified company name for token (removing inc. etc) | Community
Skip to main content
Darrell_Alfons2
New Participant
May 9, 2017
Solved

Simplified company name for token (removing inc. etc)

  • May 9, 2017
  • 1 reply
  • 1777 views

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.
Best answer by SanfordWhiteman

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.

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
May 9, 2017

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.

December 21, 2017

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

SanfordWhiteman
New Participant
December 21, 2017

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)