SOLVED

Simplified company name for token (removing inc. etc)

Go to solution
Highlighted
Level 7 - Champion Alumni

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!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Level 10 - Community Moderator

Re: Simplified company name for token (removing inc. etc)

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
Highlighted
Level 10 - Community Moderator

Re: Simplified company name for token (removing inc. etc)

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

Highlighted
Anonymous
Not applicable

Re: Simplified company name for token (removing inc. etc)

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

Highlighted
Level 10 - Community Moderator

Re: Simplified company name for token (removing inc. etc)

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)