Some times we have to load files into dynamics Ax. Following X++ code helps to load files in Dynamics AX.
Dialog _dialog;
DialogField _file;
;//Prompt to import excel
_dialog = new Dialog(“Please select the file to load”);
_dialog.addText(“Select file:”);
_file = _dialog.addField(ExtendedTypeStr(“FilenameOpen”));_dialog.run();
if (_dialog.closedOK())
{
info(_file.value() );
}