Xpo file importing through X++ code in Ax 2012

This code helps to import an XPO using X++

static void importXPO(Args _args)
SysImportElements sysImportElements = new SysImportElements();

sysImportElements.newFile(“C:\\Form_KranthiTest.xpo”);/// this is your XPO filename
sysImportElements.parmImportWithIds(false);///if you don’t to import with IDvalues


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s