Question
Unable to create request with 'since' to 'until'
I am trying to pull LeadActivity changes (ParamsGetLeadChanges). For some reason, interval is not setting correctly. The results seems to be from the very inception.
DatatypeFactory factory = DatatypeFactory.newInstance();
LastUpdateAtSelector leadSelector = new LastUpdateAtSelector();
GregorianCalendar since = new GregorianCalendar();
since.setTimeInMillis(_oldestCreatedAt.getTimeInMillis());
leadSelector.setOldestUpdatedAt(factory.newXMLGregorianCalendar(since));
GregorianCalendar until = new GregorianCalendar();
until.setTimeInMillis(_latestCreatedAt.getTimeInMillis());
JAXBElement<XMLGregorianCalendar> jaxbOldestCreateAtValue =
objectFactory.createLastUpdateAtSelectorLatestUpdatedAt(factory.newXMLGregorianCalendar(until));
leadSelector.setLatestUpdatedAt(jaxbOldestCreateAtValue);
getRequest().setLeadSelector(leadSelector);
_oldestCreatedAt and _latestCreatedAt are both set correctly.
I want to retrieve changes from _oldestCreatedAt to _latestCreatedAt.
Please help
DatatypeFactory factory = DatatypeFactory.newInstance();
LastUpdateAtSelector leadSelector = new LastUpdateAtSelector();
GregorianCalendar since = new GregorianCalendar();
since.setTimeInMillis(_oldestCreatedAt.getTimeInMillis());
leadSelector.setOldestUpdatedAt(factory.newXMLGregorianCalendar(since));
GregorianCalendar until = new GregorianCalendar();
until.setTimeInMillis(_latestCreatedAt.getTimeInMillis());
JAXBElement<XMLGregorianCalendar> jaxbOldestCreateAtValue =
objectFactory.createLastUpdateAtSelectorLatestUpdatedAt(factory.newXMLGregorianCalendar(until));
leadSelector.setLatestUpdatedAt(jaxbOldestCreateAtValue);
getRequest().setLeadSelector(leadSelector);
_oldestCreatedAt and _latestCreatedAt are both set correctly.
I want to retrieve changes from _oldestCreatedAt to _latestCreatedAt.
Please help