Hello fine folks,
Just facing this issue: I have created a manually triggered automation rule to adjust the due date based on a user input.
Then, I'm formatting it to number and save the new value in a new variable (using .round to remove .0 from the user input).
The next step is to add the user input value to the current date and log the new due date.
But for some reason it is not working for the new due date value.
But it works if I'm using a number: {{now.plusMonths(12)}}
What do I miss here?
Hello @Csaba Vertessy
All variables are stored as string regardless of any formatting commands that you use when you create the value.
When you use it in your calculation you have to use the .asNumber formatting command within the calculation
{{now.plusMonths(varDuedatePlusMonths.asNumber)}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm glad I could help!
Please consider clicking the Accept Answer button above my response to mark your Question as Solved. That helps other people searching the community find posts with validated solutions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.