function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Aniruddha.ManakeshwarAniruddha.Manakeshwar 

Need help to write Formula for Alias on Account Name

If the account is more than one word us the first letter of each word and use the last two letters in the last word to complete 4 letters if the account is less than 4 words.
 
For example:
 
Toronto Housing Authority = THAY
Johny Walker = JWER
University of Pune= UOPE
Pune Area Technical Collage=PATC

i am stuck for creation of this formula, can you please help me for this? I dont know how to check for more than one word and apply the formula for this inside salesforce?
If we cannot create a formula then what are other alternative to do this? I am very new to salesforce, please help/suggest

 

AmitSahuAmitSahu

You can use trigger for this which will be a bit easier than formulau of this kind..

Aniruddha.ManakeshwarAniruddha.Manakeshwar

Can you help me to write this trigger?