Hi there,
I am running into this issue where in the action, request parameters, I get this error message:
The expression is invalid : You cannot use the word 'toString' like this because it is a keyword of the language. Please, add quotes to fix your expression.
I am trying to send a concatenated string into the request parameter. Sometimes I will need to do data type conversion, and in this case, converting the datetime to string.
This works: toString(now())
This does not work: #{ExperiencePlatform.ProfileFieldGroup.profile._tenant.accountid} + toString(now())
This does not work: 'Test' + toString(now())
How do I get around this?
Thanks!
Solved! Go to Solution.
Views
Replies
Total Likes
@akwankl, You can use the concat function. Try something like this,
concat(concat(#{ExperiencePlatform.ProfileFieldGroup.profile._tenant.accountid},"+"),toString(now()))
Views
Replies
Total Likes
thanks @SatheeskannaK, that worked! Can you explain why we can't use what I had originally? This solution is not very intuitive.
Views
Replies
Total Likes
Amazing, the bracket did the trick!!!! I would have never thought of that, thank you @dugganab !!
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies