Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
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
0