You are here: Ektron Namespace > Providers API > Ektron.Cms.Commerce.Inventory Namespace > Ektron.Cms.Commerce.Inventory.Provider Namespace > InventoryProvider Class > InventoryProvider Methods > GetInventory
Ektron CMS400.NET API Documentation
ContentsIndexHome
PreviousUpNext
InventoryProvider.GetInventory Method

Gets inventory information for a specified catalog entry (product). Some of the items returned include:

  • EntryId
  • UnitsInStock
  • UnitsOnOrder
  • ReorderLevel
For example, if you want to find out the number of units in stock, units on order, and the re-order level for an item with an ID of 12, you might use the following line of code:

inventory.GetInventory(12);

When creating a custom inventory provider you must implement this method. 

If you only want to return the re-order level, you could also use the GetReorderLevel method. 

If you only want to return the number of units in stock, you could also use the GetUnitsInStock method. 

If you only want to return the number of units on order, you could also use the GetUnitsOnOrder method.

C#
public abstract InventoryData GetInventory(long entryId);
Visual Basic
Public abstract Function GetInventory(entryId As long) As InventoryData
Parameters 
Description 
entryId 
Enter the numeric ID for a catalog entry (product). 

Returns the InventoryData data class object for the supplied catalog entry.

Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at [email protected].
Copyright (c) 2008. All rights reserved.
What do you think about this topic? Send feedback!