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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Searching For Custom Records Within A Date Range
Hi,
Does anyone have any pointers on how to perform a search on a custom date field within a given date range for a custom record?
Currently, I'm using a CustomRecordSearch with a CustomRecordSearchBasic.
I create two SearchDateCustomFields, one with the start date and an operator of onOrAfter, the other with the end date with an operator of onOrBefore. If either the start date or end date are not set, I create only one SearchDateCustomField.
It works fine when either the start date is set or the end date is set, but not when both are set. IE: When the search is something like:
0