This post is machine-translated. The original post in german language can be found here.
These post applies to following versions:
Dynamics AX 2012, Dynamics AX 2009
Dynamics AX 2012, Dynamics AX 2009
|
|
|
|
|
|
|
|
|
|
This post is machine-translated. The original post in german language can be found here.
These post applies to following versions:
Dynamics AX 2012, Dynamics AX 2009
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
A simple example of how to create a purchase order line through code using AX<Table>-Class.
static void createPurchLine(Args _args) { axPurchLine axPurchLine; purchLine purchLine; axPurchLine = AxPurchLine::newPurchLine(purchLine); axPurchLine.validateInput(true); axPurchLine.continueOnError(false); axpurchLine.parmPurchId("P00001"); axpurchLine.parmItemId("1000"); axPurchLine.parmPurchQty(10); axPurchLine.parmPurchPrice(24.50); axPurchLine.save(); }