question

dhananjay avatar image
dhananjay asked parag answered

How to get Item with product code using inventory connector

I am building application where my application will provide product code and using Inventory connector it to retrieve Item from inventory.

currently I am using below code to get all Item list from Inventory application -

val merchantItems: MutableList<Item> = inventoryConnector.getItems();

val mItem: Item = merchantItems[2];


but I need particular Item where I will provide product code and get that Item


using above code I am providing index value.

Thank in advance.

Inventory
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
parag avatar image
parag answered
val items = inventoryConnector.getItem("product id")
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community