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
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, privacy policy and cookie policy

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