web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Automation of Chart of Accounts exports

(0) ShareShare
ReportReport
Posted on by

I'm trying to automate our accounting system which currently is all manual exporting and excel configuration...

I would like to try and setup a script to autmatically export a chart of accounts for a given company in Navision direct to excel.

Seems pretty simple but im having trouble getting it to work, any help would be greatly appreciated.

Im pretty new to this and was asked to make it happen. from my understanding the chart of accounts is an aggrigation of over 180 tables in my specific NAV to a SQL querie would be obnoxious to say the least.. would love to have some kind of powershell script or VB script to accomplish this but have no idea how to get the chart of accounts for a given company exported..

thanks again

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Nareshwar Raju Vaneshwar Profile Picture
    5,596 on at

    Hi,

    You can develop a report and run the report dynamically/periodically using job queue.

    In that report, you need to add the G/L Account Table as a Dataitem, which is your CoA.

    Check out the blog post by Saurav, how can you design the report in order to send data to excel: saurav-nav.blogspot.com/.../nav-2013-r2-export-to-excel-report.html

    Starting with job queue, there are useful guides over MSDN. Start here:

    [1]: msdn.microsoft.com/.../hh879427(v=nav.80).aspx

    [2]: msdn.microsoft.com/.../hh879053(v=nav.80).aspx

    Hope it helps.

  • Suggested answer
    Alexander Ermakov Profile Picture
    28,096 on at

    Agree with Nareshwar, you do not need many tables for that, but rather one table which is G/L Account. This table contains the list of all accounts, and those accounts have flowfields that sum up the data stored in the G/L Entry table, where all the accounting transactions are posted. You can use this information and generate a report and send data to Excel.

  • Suggested answer
    Community Member Profile Picture
    on at

    Chart of Account - Balance is showing based on the single table  i.e G/L Entry.

    You can run SQL query from this G/L Entry table to get the desired result.

  • Steve Henty Profile Picture
    30 on at

    I'm not a Nav User yet but soon will be, could an Excel ODBC query be the answer?

  • Suggested answer
    Nareshwar Raju Vaneshwar Profile Picture
    5,596 on at

    Hi Steve,

    Of course. You can use Excel ODBC and SQL Server to pass data in between. You can use Powershell for that purpose too.

    This is a good read: www.simple-talk.com/.../getting-data-between-excel-and-sql-server-using-odbc--

    But this question is more directed towards from NAV to Excel. That is why myself and Alexander answered in an angle how we can do it in NAV itself.

    Hope it helps.

  • Suggested answer
    RockwithNav Profile Picture
    8,637 Super User 2025 Season 2 on at

    Yes SQL ODBC would be one of the best way to export the data in excel. It would be comparatively much faster. 

    Having records like +90000 then usually I prefer from Excel ODBC. Even look and feel is too good.

  • Suggested answer
    RockwithNav Profile Picture
    8,637 Super User 2025 Season 2 on at

    Hey Vdemel,

    As Nareshwar and Alexander said going with report and then getting it executed from the Job queue will give more relief to you. Design a report with no RDLC layout but just C/AL code inside which will Export it Excel. Assign this Report to the Job Queue and schedule it as per your need. It will automatically keep saving the Report in excel format in the desired location.

  • Suggested answer
    Ashwini Tripathi Profile Picture
    4,624 on at

    You can use many ways :

    Create a report and schedule via NAS

    Create Xmlport and schedule via NAS

    Create Jet Report

    Use Power View

    Use ODBC connection

    You can find few ways on my blog search for it.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans