cancel
Showing results for 
Search instead for 
Did you mean: 

Update Future Price per Item DI Api

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member185682
Active Contributor

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

Answers (0)