to get a personalized navigation.
to get a personalized navigation.
Hi,
We are fetching Inventory from the Visma.net ERP Service API with filters to only fetch changes from last time we fetch data using "lastModifiedDateTime" and "lastModifiedDateTimeCondition". This works fine but we have found that if the nested child object "warehouseDetails" changes (we are interested in
Solved! Go to Solution.
Hi!
Thanks for your response and the information about availabilityLastModifiedDateTime. A follow up question. Is it possible to combine the two filters with OR? I.e. both use lastModifiedDateTime > date OR availabilityLastModifiedDateTime > date in the same request yielding either base inventory objects that has been updated or inventory objects with availability updated.
Is this possible because when using them both in a request query they work with AND, that both must be fulfilled but in our case we would need an OR logic.
Please see comments in response to kashyap's question 😉
Hi! All lastModifiedDateTime fields in the child objects of the Inventory endpoint relate to changes in availability. Not te be confused with actual item-warehouse details for example. Therefore you will find them directly below available fields in the endpoint response. These can also be filtered when executing a GET request. You can use the parameters availabilityLastModifiedDateTime and availabilityLastModifiedDateTimeCondition to activate this filter. Let me know if this has the desired effect.
This is not possible unfortunately, you have to do two separate requests to to get this desired effect.
The above solution does not work properly.
As mentioned earlier, availabilityLastModifiedDateTime is applied at the item-warehouse level.
While fetching records, we use the lastModifiedDateTime field from within warehouseDetails to maintain the last sync datetime on our end. This allows us to determine up to which date records have been synced with our system.
However, the values of this field are not being returned in the correct sort order. For example, we are receiving values like "2024-11-04 20:40:13", "2024-05-30 11:11:57", or "2024-01-15 20:40:13".
As a result, the same records keep appearing in the API results, leading to the processing of a large amount of redundant data on our side.
"warehouseDetails": [
{
"isDefault": true,
"warehouse": "1",
"quantityOnHand": 0,
"available": 0,
"availableForShipment": 0,
"lastModifiedDateTime": "2024-11-14T01:19:20.283"
}
]
Copyright © 2022 Visma.com. All rights reserved.