Happening now | Office Hours: Customizing Your Theme With Moeed | Ask your questions now!
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

inventorySetQuantities-The specified inventory item is not stocked at the location-problematic API

Solved

inventorySetQuantities-The specified inventory item is not stocked at the location-problematic API

james148
Shopify Partner
31 0 15

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.

Accepted Solution (1)

Liam
Community Manager
3108 344 911

This is an accepted solution.

Hi James,

 

I see how adding the ability to auto activate an inventory item would improve efficiency and reduce the need for additional work on your app. I've flagged this with our team - thanks for highlighting this!

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

View solution in original post

Replies 2 (2)

Liam
Community Manager
3108 344 911

This is an accepted solution.

Hi James,

 

I see how adding the ability to auto activate an inventory item would improve efficiency and reduce the need for additional work on your app. I've flagged this with our team - thanks for highlighting this!

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

james148
Shopify Partner
31 0 15

Thanks, greatly appreciated.