Hey team, this should be working but it isn't. Any ideas why?
I have set up an Assets schema that captures scheduled tasks. One of the attributes is called "Nth of the month". I have a regex expression that forces the format to be <1-4>,<1-7>, as documented here.
As an example, I have an attribute with 3,4 - meaning the third Wednesday of the month.
Using the smart value {{lookupObjects.Nth day of the month}}, it prints out 3,4 as expected. I then store this in a variable called {{nDays}}
However, if I then use {{lookupObjects.Next Scheduled Date.plusMonths(1).Nth day of the month(nDays)}}, it prints nothing.
I've confirmed that {{lookupObjects.Next Scheduled Date.plusMonths(1).Nth day of the month(3,4)}} works fine.
I've tried to use .toString, .asNumber, .htmlEncode, .xmlEncode, .jsonEncode, but still nothing.