Skip to main content
Level 2
Apr 20, 2023 8:00 PM UTC
Solved

How we can add client name in proper case in email body or SMS

Can you help us the fix the client's name in proper case. which function we need to use. 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
MichaelBaileyAccepted solution
Level 2
Apr 24, 2023 1:21 PM UTC

I could be wrong - but that looks like syntax for Personalization & Dynamic Content. I am working on a field within the Advanced Editor in an AJO Action.

 

Since there is no Title Case method, we ended up using the following expresssion:

concat( upper( substr(#{ExperiencePlatform.ProfileFieldGroup.profile.person.name.firstName}, 0, 1) ), lower( substr(#{ExperiencePlatform.ProfileFieldGroup.profile.person.name.firstName}, 1, length(#{ExperiencePlatform.ProfileFieldGroup.profile.person.name.firstName})) ) )

 

 

8 replies

SatheeskannaK
Adobe Champion, Community Advisor, UG Leader
Adobe Champion, Community Advisor, UG Leader
Apr 20, 2023 8:14 PM UTC
Level 2
Apr 20, 2023 8:34 PM UTC

it is not allowing to pass in action box parameters. giving me error. 

"The expression is invalid : Unexpected word 'camelcase' . Please, check that it is a valid token and that you are using it at the right place."

Translate
SatheeskannaK
Adobe Champion, Community Advisor, UG Leader
Adobe Champion, Community Advisor, UG Leader
Apr 20, 2023 9:23 PM UTC

By looking at the error function should be camelCase

 

I tested this and it's working: {%= camelCase(profile.person.name.firstName) %}

Translate
Thanks, Sathees
Level 2
Apr 21, 2023 11:36 AM UTC

 

I also tried both the ways but it is not working. attached the screenshot,  I am looking for SMS and passing this code in SMS action fields

 

Translate
Level 2
Apr 21, 2023 7:23 PM UTC

I am running into a similar issue - Not for use with personalization, but within the AJO Advanced editor. For example trying to manipulate a string for use in an AJO Action.

Translate
Level 2
Apr 24, 2023 7:48 AM UTC

Hi, I had to use titleCase to get name in propper case. I could not get Camle Case working. Just same error as described. 

 

Try using this

' {%= titleCase(profile.person.name.firstName) %} '

 

Hope this helps 

Cheers

 

Translate
MichaelBaileyAccepted solution
Level 2
Apr 24, 2023 1:21 PM UTC

I could be wrong - but that looks like syntax for Personalization & Dynamic Content. I am working on a field within the Advanced Editor in an AJO Action.

 

Since there is no Title Case method, we ended up using the following expresssion:

concat( upper( substr(#{ExperiencePlatform.ProfileFieldGroup.profile.person.name.firstName}, 0, 1) ), lower( substr(#{ExperiencePlatform.ProfileFieldGroup.profile.person.name.firstName}, 1, length(#{ExperiencePlatform.ProfileFieldGroup.profile.person.name.firstName})) ) )

 

 

Translate
SatheeskannaK
Adobe Champion, Community Advisor, UG Leader
Adobe Champion, Community Advisor, UG Leader
Apr 25, 2023 12:06 AM UTC

You're correct @michaelbailey.  The example which I have provided is used for personalization and thanks for sharing how you have achieved this in the action.

Translate
Thanks, Sathees