How to import XPO file to AOT in microsoft dynamics axapta x++ application through code


Summary:
If you want to  import XPO file to AOT in Microsoft dynamics axapta x++ applications through code then you can write following job in job sections of Axapta

Details
static void ImportXPOthroughJob(Args _args)
{
SysImportElements sysImportElmt1 = new SysImportElements();
;
sysImportElmt1.newFile("E:\\test.xpo");// This is to assign path of XPO filename
sysImportElmt1.parmImportAot(true);
sysImportElmt1.parmImportWithIds(false);//This to import without using xpo object ids
sysImportElmt1.import();
}

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.