Hello All,
I am integrating a dot net application which creates customer into Axapta 2009. By using business connector, i am able to create customer by using a class having following code. This works fine for me but is there any standard way of handling the scenario.
ttsbegin;
NumberSeq = NumberSeq::newGetNumFromCode(“Customer”);
custTable.AccountNum = NumberSeq.num();
custTable.PartyType = 2;
custTable.OrgId = “2”;
custTable.Currency = “USD”;
custTable.LanguageId = “en-US”;
custTable.InventSiteId = “1”;
custTable.Name = “Test Customer”;
custTable.CustGroup = “C01”;
custTable.insert();
ttscommit;