Skip to Content
avatar image
Former Member

Add Item Master Data using Di Api

Hello experts ,

I would like to add with DI Add-on values to the following fields but i cannot know how to defined it.The fields is in the items in the tab purchasing data.

Purchasing UoM Name

Length

Width

Height

Volume

Weight

Please advice.

Kind Regards ,

Ifigeneia Koumbarda

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Oct 18, 2017 at 12:03 PM

    Hi Ifigeneia,

    A sample:

    Items oItem = oCompany.GetBusinessObject(BoObjectTypes.oItems);
    if (oItem.GetByKey("A00002"))
    {
        oItem.PurchaseUnit = "Purchase UOM";
        oItem.PurchaseUnitLength = 0.6; //length
        oItem.PurchaseUnitWidth = 0.5; //Width
        oItem.PurchaseUnitHeight = 0.2; //Height
        oItem.PurchaseUnitVolume = 0.5; //Volume
        oItem.PurchaseUnitWeight = 1; //Weight
    
    
        if (oItem.Update() != 0)
            MessageBox.Show(oCompany.GetLastErrorDescription());
    }
    

    Kind Regards,

    Diego Lother

    Add comment
    10|10000 characters needed characters exceeded