Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
unable to retrieve updated records for a given range.
Hi All
I want to retrieve all updated records from host for a given period.
SearchDateField sd = new SearchDateField();
CustomerSearch custSearch = new CustomerSearch();
CustomerSearchBasic custSearchBasic = new CustomerSearchBasic();
sd.setSearchValue(timeFrom);
sd.setSearchValue2(timeTo);
sd.setOperator(SearchDateFieldOperator.within);
custSearchBasic.setLastModifiedDate(sd);
custSearch.setBasic(custSearchBasic);
SearchResult sresult = null;
sresult = binding.search(custSearch);
where timeFrom is Thu Jan 18 06:59:00 GMT-05:00 2007 and
timeTo is Thu Jan 18 06:29:00 GMT-05:00 2007.
Both timeFrom and timeTo are Calendar objects.
The operator used is "within"
The above range with operator "within" doesnt retrieve any data from the host, and it always return NULL. But am very sure there is data updated during the range.