SysAutoRun.execDataImportSetBased Method [AX 2012]

Imports data from a DAT file to a company account.

Syntax

protected boolean execDataImportSetBased(XmlNode _command)

Run On

Client

Parameters

  • _command
    Type: XmlNode Class
    The XML node from which to get the value.

Return Value

Type: boolean
true if execution is successful; otherwise, false.

Remarks

The execDataImport method is called when the <DataImport> tag is used in the configuration file when Microsoft Dynamics AX is started. For more information, see the SysAutoRun class.

Execution of this method is controlled by the execCommand method of the SysAutoRun class.

The <DataImport> tag has the following attributes:

  • companyId, specifies the company account that data should be imported into.

  • file, specifies the name and path of the file that data should be imported from.

  • includeSystemTables, indicates whether the data import includes system and shared tables. These tables are not included ordinarily. To include them, set the includeSystemTables attribute to true.

  • definitionGroupId, specifies an existing definition group to use when importing data, such as definitionGroupId="STD".

See Also

Reference

SysAutoRun Class