container createListOfFiles(FilePath _path = path, FileNameType _pattern = pattern) { System.Array files; int fileCount; int i; str nextFile; new InteropPermission(InteropKind::ClrInterop).assert(); info(strfmt(‘Search in: %1 %2’, _path, _pattern)); listOfFiles = connull(); actIx = 0; files = System.IO.Directory::GetFiles(_path, _pattern); if (files) { fileCount = files.get_Length(); info(strFmt(‘Number of…
Tag: X++
Microsoft Dynamics Ax
Creating Purchase Orders Through code in ax 2009
by Bo Jensen •
static void createPurchOrder(Args _args) { AxPurchLine axPurchLine = new axPurchLine(); AxPurchTable axPurchTable = new axPurchTable(); ; axPurchTable.parmPurchId();///Creates new PurchId axPurchTable.parmOrderAccount(‘1001’);///Vendor Account axPurchTable.save(); axPurchLine.parmPurchId(axPurchTable.parmPurchId());////Assigns PurchId axPurchLine.parmItemId(‘PolyEthylene’);///Item Number axPurchLine.axInventDim().parmInventSiteId("Unit1");///Site Id axPurchLine.axInventDim().parmInventLocationId("RM");/// Warehouse axPurchLine.parmPurchQty(1000);///Quantity axPurchLine.parmPurchPrice(20);///Purchase price per one quantity axPurchLine.save(); } kranthi AX: Creating Purchase Orders Through code in ax 2009
Microsoft Dynamics Ax
Creating Sales Orders Through code in ax 2009
by Bo Jensen •
static void createSalesOrder(Args _args) { AxSalesLine axSalesLine = new axSalesLine(); AxSalesTable axsalesTable = new axSalesTable(); SalesId salesId; ; salesId = axsalesTable.parmSalesId();///Creates sales Id axsalesTable.parmCustAccount(‘1104’); axsalesTable.save(); axSalesLine.parmSalesId(axsalesTable.parmSalesId());////assigns sales Id axSalesLine.parmItemId(‘PolyEthylene’);/// Item Id axSalesLine.axInventDim().parmInventSiteId("Unit1");///Site axSalesLine.axInventDim().parmInventLocationId("RM");///Warehouse ////if you have more dimensions enabled for item add here. axSalesLine.parmSalesQty(1000);///Quantity axSalesline.parmSalesPrice(20);///Sales Price per one quantity axSalesLine.save(); } kranthi AX: Creating…
Microsoft Dynamics Ax
Import Items into Ax with Code – Microsoft Dynamics Community
by Bo Jensen •
This can be called to create a new item from code, for example CreateNewItem(‘AA01’);
Enterprise Portal
How to debug x++ code for Microsoft Dynamics AX Enterprise Portal
by Bo Jensen •
How to debug x++ code for Microsoft Dynamics AX Enterprise Portal
Microsoft Dynamics Ax
Developing Applications for Microsoft Dynamics AX with X++ and the .NET Framework – CodeGuru
by Bo Jensen •
Developing Applications for Microsoft Dynamics AX with X++ and the .NET Framework – CodeGuru
Microsoft Dynamics Ax
How to: Connect to an External Database from X++ Code
by Bo Jensen •
How to: Connect to an External Database from X++ Code
Microsoft Dynamics Ax
How to create an Excel file in X++
by Bo Jensen •
Create a new Job in AOT and write the code shown below: