class ReadXmlFile
{
}
public static void main(Args
_args)
{
XmlDocument doc;
XmlNodeList data;
XmlElement nodeTable;
XmlElement nodeAccount;
XmlElement nodeName;
#define.filename(@'C:\Temp\accounts.xml')
doc = XmlDocument::newFile(#filename);
data = doc.selectNodes('//'+tableStr(MainAccount));
nodeTable = data.nextNode();
while (nodeTable)
{
nodeAccount = nodeTable.selectSingleNode(
fieldStr(MainAccount, MainAccountId));
nodeName = nodeTable.selectSingleNode(
fieldStr(MainAccount, Name));
info(strFmt(
"%1 - %2",
nodeAccount.text(),
nodeName.text()));
nodeTable = data.nextNode();
}
}
Can we post sales order.the data is in xml file..plz guide me
ReplyDeleteThis comment has been removed by the author.
DeleteHi Fiazuddin,
DeleteRefer these links,
https://community.dynamics.com/ax/f/33/t/157131
https://erpdax.wordpress.com/2015/03/19/read-import-data-from-xml/