You need to sign in to do that
Don't have an account?
Remove white spaces between two words in formula
We currently have a workflow that creates a "dummy" email address when an email address is not provided in a lead or contact record. The business requirement is for the email address to be FirstName.LastName@Company.nomail. The problem we're running into is that the email fields do not like any spaces in the email address, which is a problem for company's with multiple words in their name.. i.e. Some Burger Corp. Contact names also cause the same issue.
The workflow uses a simple formula to set the value: FirstName +"."+ LastName +"@"+ Company +"."+ "nomail"
Is there a way to remove all white spaces in a concatenation formula?
Thanks for you help.
Change your formula to this"
SUBSTITUTE(FirstName , " ", "")+"."+ SUBSTITUTE(LastName , " ", "")+"@"+ SUBSTITUTE(Company , " ", "") +"."+ "nomail"
This will replace a space with no space.
All Answers
Use formula function, "TRIM()"
Change your formula to this"
SUBSTITUTE(FirstName , " ", "")+"."+ SUBSTITUTE(LastName , " ", "")+"@"+ SUBSTITUTE(Company , " ", "") +"."+ "nomail"
This will replace a space with no space.
Thanks Boom B... that worked great.
@DeepaAnika.Ankali Thanks for the reply. I had originally tried the TRIM() but it will only delete extra white spaces and not all white spaces, unless I did a character count, which in this case would not be possible.