inventorySetQuantities is great, it’s fast.
It, however, suffers from a serious deficiency - the lack of ability to auto-activate items at locations.
We need to sync inventory from ERPs and most of the ERPs we deal with has no facility to record/flag if a specific inventory level if has been previously sent to an external solution (such as Shopify).
If we have a single inventory record where it hasn’t been activated at a location ALL other records in the ‘batch’ fail!
This means we just use ‘inventoryActivate’ as it is the only way we can guarantee that we add missing inventoryItem at the specified location.
A vast improvement would be to add another flag to auto-activate an item - and carry with this a higher query cost.