How to import xpo in axapta by code

How to import xpo in axapta by code. You can write following code in job or any even where you want to import

SysImportElements ElementToImport = new SysImportElements();
;
ElementToImport.newFile("D:\\TestProject.xpo");
// XPO filename which may be project,form,report or any thing from aot
ElementToImport.parmImportAot(true);
ElementToImport.parmImportWithIds(false);
ElementToImport.import();

No comments:

Post a Comment

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