Hi,
I wanted to get a list of managed customer accounts which existed in some date range (I wanted to do it using Java API).
I was using ManagedCustomerServiceInterface and SelectorBuilder. The code was as the following:
LocalDateTime from = LocalDateTime.parse("1980/05/15", DateTimeFormat.forPattern("yyyy/MM/dd"));
LocalDateTime to = LocalDateTime.parse("1981/05/15", DateTimeFormat.forPattern("yyyy/MM/dd"));
// Create selector builder.
SelectorBuilder selectorBuilder =
new SelectorBuilder()
.fields(ManagedCustomerField.CustomerId, ManagedCustomerField.Name)
.forDateRange(from.toDateTime(), to.toDateTime())
.orderAscBy(ManagedCustomerField.Name);
ManagedCustomerPage page = managedCustomerService.get(selectorBuilder.build());
However it seems that this date range is not applied - I was getting a list of all the account available right now even though I was using as a date range some date in the 80'.
Is there something missing in my approach?
Thanks,
Lukasz