Skip to Content
0

BP Catalogue numbers via DI API

Nov 30, 2016 at 07:50 AM

133

avatar image
Former Member

Hi guys,

can someone explain how to add BP catalogue numbers to items via the DI API?

thanks

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

1 Answer

Best Answer
DIEGO LOTHER Nov 30, 2016 at 12:38 PM
1

Hi Costas,

To add BP Catalogue number via DI API you should use AlternateCatNum object. The values are stored in OSCN table.

A sample code:

                AlternateCatNum oAltCatNum = oCompany.GetBusinessObject(BoObjectTypes.oAlternateCatNum);
                oAltCatNum.CardCode = "your bp code";
                oAltCatNum.ItemCode = "your item code";
                oAltCatNum.Substitute = "bp itemcode";
                if(oAltCatNum.Add() != 0)
                {
                    MessageBox.Show(oCompany.GetLastErrorDescription());
                }

Kind Regards,

Diego Lother

Share
10 |10000 characters needed characters left characters exceeded