Can you help us the fix the client's name in proper case. which function we need to use.
Solved! Go to Solution.
Views
Replies
Total Likes
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}))
)
)
Hi @SumanTiwari,
Look at the Camel Case function to see if that addresses your need.
Views
Replies
Total Likes
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."
Views
Replies
Total Likes
By looking at the error function should be camelCase
I tested this and it's working: {%= camelCase(profile.person.name.firstName) %}
Views
Replies
Total Likes
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
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
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
Views
Replies
Total Likes
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}))
)
)
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.
Views
Replies
Total Likes