I am trying to load only those invoices that have been created or updated since last time I checked.
I am filtering on the LastModified field, and recording the maximum value from previous queries.
It is picking up new orders, but if I go into an invoice (item invoice) and make a change like change the quantity, I am not seeing the invoice return in my query. I would assume that changing the items on an invoice would update the lastmodified field.
How can I pull back all item invoices that have changed since the last time I checked?