Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
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.