Monday, December 15, 2008

Command Line To Import Data

In Axapta 4.0 you can use the -startupcmd=autorun_ command line option to batch import data is two steps.

1. Create an xml file (demoData.xml for example) that looks like this:
 

2. Then launch the client with command line like this:
ax32.exe -startupcmd=autorun_demoData.xml

Notice the prefix autorun is added to the xml file name.  Since exitWhenDone is set to “true”, the client will exit after importing the data.

You can see a list of all the tags that are handled by the -startupcmd=autorun_ command by looking in the X++ classDeclaration of SysAutoRun.

No comments:

How to identify the user that was used to change an object from AOT in AX2012

Get the object name for which we need to track these (user and date&time) information's. Login to SQL Server Management Studio an...