Thursday, October 27, 2011

Check Active Inventory Dimension

In recent time I came across with a requirement how to find out an active inventory dimension associated with an item.

Here is a sample job to do this task;

static void checkInventDimActive(Args _args)
{
ItemId itemid = "1000";
;

info(strfmt("%1", InventDimSetup::find(InventTable::find(itemid).dimGroupId, fieldNum(InventDim, configId)).Active));
}

No comments:

Post a Comment

I will appreciate your comments !

Download large bacpac (sandbox database) to DEV environment much faster

As the LCS website gets slower and slower and the database backups get bigger and bigger.  Use AZCopy to download objects out of LCS asset l...