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!
解決済! 解決策の投稿を見る。
表示
返信
いいね!の合計
@akwankl, You can use the concat function. Try something like this,
concat(concat(#{ExperiencePlatform.ProfileFieldGroup.profile._tenant.accountid},"+"),toString(now()))
表示
返信
いいね!の合計
thanks @SatheeskannaK, that worked! Can you explain why we can't use what I had originally? This solution is not very intuitive.
表示
返信
いいね!の合計
Amazing, the bracket did the trick!!!! I would have never thought of that, thank you @Mohan_Dugganab !!
表示
返信
いいね!の合計