Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Change contact-names to Proper Case

(0) ShareShare
ReportReport
Posted on by 10

Hi,

I want to send a Marketing E-Mail via CRM that contains a Custom Code in which the first and second name of the contact is inserted:

__________________________________________
{{#if (eq contact.gendercode 1)}}  Dear Mr.
{{else if (eq contact.gendercode 2)}}  Dear Ms. {{/if}}

{{contact.firstname}} {{contact.lastname}},
_____________________________________

The problem is that many of the contacts' names are not written in proper case (which means that the first letter of the name is capitalized and the other letters are not). Most of them are written with only lowercase letters and some even with a wrong mix of higher- and lowercase.

So my question is if there is any way to transform the cases of all names I use in this Marketing E-Mail to proper case? I don't have any expirience with using javascript in CRM, but could this lead to a solution? Or is there maybe a simpler way to do this?

Thank you!

  • Suggested answer
    Thangamani Profile Picture
    507 on at
    RE: Change contact-names to Proper Case

    Hi Markat,

       There is no OOB configuration for this and we need to accomplish via javascript.

    Alternative simple way while creating contacts just throw a validation that it firstname and lastname should start with Upper case before saving the contatc record.

    Regards,

    Thangamani

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 225 Super User 2025 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 106 Most Valuable Professional

#3
Eugen Podkorytov Profile Picture

Eugen Podkorytov 87

Overall leaderboard

Product updates

Dynamics 365 release plans