I have a Multi-Select Day of the Week field on a C...
# general
t
I have a Multi-Select Day of the Week field on a Custom Record that I want a Saved Search to evaluate that todays date is one of the days selected. I built my formula yesterday and it worked great, I thought I was all set. When I ran it today, anything with 'Thursday' selected was not showing up. The idea was to have this text formula to not be empty as the criteria. _REGEXP_SUBSTR({custitem_item_class.custrecord_retail_floor_transfer_day},TO_CHAR({today}, 'Day'))_ Does anyone have any idea why Netsuite only recognizes Wednesday??
g
Curious, what happens if you do {today}-2 or -3?
t
So I did try and test this by adding/subtracting days and Wednesday is the only one that works.
g
That's really weird - and I'm getting the same on my end. Had a thought though, why not use `INSTR()`as your criteria?
t
I am still learning these functions, how would that be used in this case?
I ended up using this instead and it works for this purpose. REGEXP_SUBSTR({custitem_item_class.custrecord_retail_floor_transfer_day.id},TO_CHAR({today}-1, 'D')) Luckily, the Days of The Week list entry ids are the same as the day of the week.
👍🏻 1
It's a handy function, and returns a number so you can have your criteria look for > 0 for matches.
t
Thanks for your help!
👍🏻 1