Hi All,
I have a scenario where I need to export the best practice list to excel or a html file in AX 2009. I tried using sysCompilerOutput::exportLog but it is exporting all(warnings,errors and BP's).
Is there any other way to achieve this.
Thanks.
Hi Crispin,
I am using the below code.
projectNode.AOTcompile();
sysCompileroutput = infolog.compilerOutput();
tmpCompilerOutput = sysCompileroutput.compilerOutput();
but I am not getting any buffer in tmpCompilerOutput. If I get buffer I will use it to store the BP deviations in a separate table. What could have been wrong here as I could not find the issue that cause buffer to be 0.
1. Try to make use of a small job to run a best practice check.
2. Results are stored in templorary table TmpCompilerOutput
3. Filter only TmpCompilerOutput.SysCompilerOutputTab == SysCompilerOutputTab::BestPractices
and export them in your desired format.
(Note: you have to use the SysCompilerOutput class to access data from TmpCompilerOutput)
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156