2

I am using the IGetInventorySkuPipeline to get hold of an InventorySku object. If I get one, then I want to modify and save it and if I don't get one (for the productId I send down the pipeline), then I want to create a new InventorySku for that product. But I don't find any pipeline for either save nor create an InventorySku.

What am I missing?

2
  • Which version of Commerce server are you using? Commented Apr 27, 2018 at 21:06
  • @Peter 8.2 version 5. Commented Apr 30, 2018 at 5:22

1 Answer 1

2

It seem my problem was that I were using

CommercePipelineExecutionContext

and

Sitecore.Commerce.Plugin.Inventory.InventorySku

when I should have used

CommerceServer.Core.Inventory.InventoryCatalog

and

CommerceServer.Core.Inventory.InventorySku

Because

CommerceServer.Core.Inventory.InventoryCatalog

have a .CreateSku() and

CommerceServer.Core.Inventory.InventorySku

have a .Save()

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.