Skip to Content
avatar image
Former Member

Update Future Price per Item DI Api

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Jul 04, 2017 at 01:50 PM

    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

    Add comment
    10|10000 characters needed characters exceeded