First insert in header table like this. custInvoiceTable.clear(); custInvoiceTable.initFromCustTable(custtable); custInvoiceTable.insert(); Then Insert in invoice line table. custInvoiceLine.clear(); custInvoiceLine.initValue(); //setup main account as required offsetDimensions = ["3434","3434", 0, "", ""]; // you can set a Main Account with multiple financial dimensions custInvoiceLine.LedgerDimension = AxdDimensionUtil::getLedgerAccountId(offsetDimensions); custInvoiceLine.initFromCustInvoiceTable(custInvoiceTable); custInvoiceLine.ItemId = "erw234324"; //custom field...
Microsoft Dynamics Ax,AIF,Axapta, Enterprise portal,,Microsoft , United State,U.S., SharePoint , BI Tools, Performance Tuning, SSRS,Business Logic,Ax ERP Errors and solution,Dynamics 365 Errors Solution,Business software .