Hi,
I am using it:
{%= addMonths(profile._deloittellpcanada.abnMemberDetails.tsExpect_date, 1) %}
simply want to add 1 month to tsExpect_date but action failed because of it.
the expect_date format is as 2024-12-04T00:00:00Z.
can you help me out to troubleshoot it?
Thank you.
Solved! Go to Solution.
Views
Replies
Total Likes
There is a runtime rendering error, kindly log a support ticket for this
Views
Replies
Total Likes
Try this
Input: {%= addMonths(stringToDate("2024-12-04T00:00:00Z"),1) %}
Validation: {%= addMonths(toDateTimeOnly(profile._deloittellpcanada.abnMemberDetails.tsExpect_date,),1) %}
Thanks,
David
Views
Replies
Total Likes
no luck here, by the way my date is already defined as datetime with format as 2024-12-04T00:00:00Z why to use ToDatetimeOnly function
Views
Replies
Total Likes
I tested again and it's working for me.
by the way my date is already defined as datetime with format as 2024-12-04T00:00:00Z why to use ToDatetimeOnly function? -->
Personalization in AJO is based on the templating syntax called Handlebars. Handlebars.js treats all values as strings by default because it doesn’t have built-in type awareness like JavaScript. This means that even numbers, booleans, or objects will be coerced into strings when rendered in a template. Hence you need to convert it when using helper functions
Thanks,
David
Views
Replies
Total Likes
Thank you, but still have errors
Views
Replies
Total Likes
Can you share what error you get when you directly use
{%= addMonths(profile._deloittellpcanada.abnMemberDetails.tsExpect_date, 1) %} ? This should ideally work as it's a datetime from the below example
Views
Replies
Total Likes
I used below with no error detected:
then published the DM campaign then telling me:
no idea what's going on and is there any details of error log could help?
Views
Replies
Total Likes
can you query ajo_message_feedback_event_dataset dataset filtering on _experience.customerJourneyManagement.messageExecution.campaignID column to see if there is any error reported ?
Views
Replies
Total Likes
Views
Replies
Total Likes
There is a runtime rendering error, kindly log a support ticket for this
Views
Replies
Total Likes