Hi All,
I would like to export any AOT node(eg:Form-Accountant_BR) to xpo file but through code (x++) from different layers (usr,cus,sys) while exporting.
Thanks,
Phani
Try something like this:
#AOT TreeNode formNode = TreeNode::findNode(#FormsPath #AOTDelimiter formStr(Accountant_BR)); treeNodeCus = treeNode.getNodeInLayer(UtilEntryLevel::cus); if (treeNodeCus) { treeNodeCus.treeNodeExport(strFmt(@'c:\temp\%1%2.xpp', treeNode.AOTname(), UtilEntryLevel::cus)); }
By the way, why are you doing it?
Hi Martin,
I have tried the above code for usr layer and it gives the sys changes as well in that . Kindly help me
Im sorry, I don't have any AX 2012 environment anymore, therefore I can't test it. But I believe that it should work. Make sure you call treeNodeExport() on treeNodeCus and not treeNode.
If nothing helps, look at the standard code that handles exports from GUI.
Hi Phani,
Were you able to export using the information provided by Martin?
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
CA Neeraj Kumar 2,028
André Arnaud de Cal... 878 Super User 2025 Season 2
Sohaib Cheema 579 User Group Leader