Skip to Content
0

Update Future Price per Item DI Api

Jul 04, 2017 at 01:24 PM

51

avatar image

Hello experts ,

I would like to update the unit price per price list per item.I try to getbykey item and pricelists but i cannot find any field for unit price.Any idea?

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 Jul 04, 2017 at 01:50 PM
0

Hi Ifigeneia,

Try this:

                Items oItem = (Items)oCompany.GetBusinessObject(BoObjectTypes.oItems);
                if (oItem.GetByKey("A00001"))
                {
                    for (int i = 0; i <= oItem.PriceList.Count - 1; i++)
                    {
                        oItem.PriceList.SetCurrentLine(i);
                        oItem.PriceList.Price = oItem.PriceList.Price + 1; //Add 1 to my price
                    }
                    if(oItem.Update() != 0)
                        MessageBox.Show(oCompany.GetLastErrorDescription());
                }

Hope it helps.

Kind Regards,

Diego Lother

Share
10 |10000 characters needed characters left characters exceeded