How we can add client name in proper case in email body or SMS | Adobe Higher Education
Skip to main content
Level 2
April 20, 2023
Resuelto

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

  • April 20, 2023
  • 6 respuestas
  • 2301 visualizaciones

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

Este tema ha sido cerrado para respuestas.
Mejor respuesta de MichaelBailey

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

 

 

6 respuestas

SatheeskannaK
Community Advisor
Community Advisor
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."

SatheeskannaK
Community Advisor
Community Advisor
April 20, 2023

By looking at the error function should be camelCase

 

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

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

 

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.

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

 

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

 

 

SatheeskannaK
Community Advisor
Community Advisor
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.

Thanks, Sathees