Hi,
How can I retrieve the day of the week using the AJO Advanced Expression Editor? I'm encountering the following error when using the syntax {%= dayOfWeek(now()) %}.
Date Time functions library | Adobe Journey Optimizer
해결되었습니다! 솔루션으로 이동.
조회 수
답글
좋아요 수
You can use the following config. in condition node
조회 수
답글
좋아요 수
You can try it on the following lines
{% let d = now %}
{% let dayOfWeek = dayOfWeek(d) %}
{%#if dayOfWeek = 3%}
"Wednesday"
{%else%}
"Something else"
{%/if%}
조회 수
답글
좋아요 수
@Mohan_Dugganab, Thank you for the response.
In the content template and email designer, we have helper functions that include the day of the week, so I can leverage your code there. However, I want to achieve this day of the week functionality in journey condition activity. Is that possible?
조회 수
답글
좋아요 수
You can use the following config. in condition node
조회 수
답글
좋아요 수
@Mohan_Dugganab, The above approach works when we're only checking for the day of the week.
But, The use case involves checking if it's a weekend, and if so, the profile should wait until a weekday. If it's a weekday but falls on a public holiday, the profile should wait until the next valid day. I want to implement this in AJO using the fewest possible activities.
조회 수
답글
좋아요 수
조회 수
Likes
답글
조회 수
Likes
답글
조회 수
Likes
답글