Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Saved search formula nested date field
Hello all,
I would like to create a saved search formula in the criteria subtab using Filter formula(numeric). For instance, I would like check if the current date is Monday then filter by a specific range. See my formula below:
CASE
WHEN TRIM(TO_CHAR({locationconfiguration.nextinvtcountdate},'DAY'))='MONDAY' THEN
CASE
WHEN TO_DATE({locationconfiguration.nextinvtcountdate}) BETWEEN TO_DATE({today}) AND TO_DATE({today}+5) THEN 1 ELSE 0
END
END
Also, note that I used "equal: to" = 1.
I got the error "Your formula has an error in it". I think I wrongly created the nested cases.
Can anyone help please?
Thank you