Skip to Content
0

Add Item Master Data using Di Api

Oct 18, 2017 at 10:03 AM

144

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
DIEGO LOTHER Oct 18, 2017 at 12:03 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded