Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Unanswered

Export BP to excel

Posted on by 240

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.

  • venkates Profile Picture
    venkates 240 on at
    RE: Export BP to excel

    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.

  • Crispin John Augustine Profile Picture
    Crispin John Augustine 37,081 on at
    RE: Export BP to excel

    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)

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.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans