Skip to main content
Level 2
April 20, 2023
Respondido

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. 

Este tópico foi fechado para respostas.
Level 2
April 24, 2023

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 Respostas

SatheeskannaK
Adobe Champion, Community Advisor, UG Leader
Adobe Champion, Community Advisor, UG Leader
April 20, 2023
Level 2
April 20, 2023

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."

Traduzir
SatheeskannaK
Adobe Champion, Community Advisor, UG Leader
Adobe Champion, Community Advisor, UG Leader
April 20, 2023

By looking at the error function should be camelCase

 

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

Traduzir
Thanks, Sathees
Level 2
April 21, 2023

 

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

 

Traduzir
Level 2
April 21, 2023

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.

Traduzir
Level 2
April 24, 2023

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

 

Traduzir
Level 2
April 24, 2023

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})) ) )

 

 

Traduzir
SatheeskannaK
Adobe Champion, Community Advisor, UG Leader
Adobe Champion, Community Advisor, UG Leader
April 25, 2023

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.

Traduzir
Thanks, Sathees