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

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Clean up COA

(0) ShareShare
ReportReport
Posted on by 330

Is there a report/smartlist to show the last date that a general ledger account number was used?  I want to get rid of accounts no longer be utilized.  Thanks.

*This post is locked for comments

I have the same question (0)
  • Frank Hamelly | MVP, MCP, CSA Profile Picture
    46,619 Super User 2025 Season 2 on at
    Re: Clean up COA

    What do you plan to do with the account history Tracy?  Merge with another account?

  • Tracy Yaklyvich Profile Picture
    330 on at
    Re: Clean up COA

    I plan to leave the account history on the account.  I want to inactivate/disallow account entry on accounts no longer valid.  My thought is that having less active accounts will help the system be more efficient.

  • Community Member Profile Picture
    on at
    Re: Clean up COA

    Tracy,

    A quick group by query on GL30000 with the max. transaction date by acct index should get you started.   I have not totally fleshed this out for you.   Please let us know if you the actual sql syntax.

    Warren

  • Frank Hamelly | MVP, MCP, CSA Profile Picture
    46,619 Super User 2025 Season 2 on at
    Re: Clean up COA

    Warren's idea sounds like a good plan.  There is no OOB SmartList that will provide this, although you could create one using SmartList Builder.

  • Victoria Yudin Profile Picture
    22,768 on at
    Re: Clean up COA

    Tracy,

    If you can do this in SQL, you can use the code here http://victoriayudin.com/2011/04/27/sql-view-for-all-gl-transactions-in-dynamics-gp/ to create a view of all GL transactions, then run the following query:

    select Account_Number, Account_Description, max(Trx_Date) Last_Used

    from view_GL_Trx

    group by Account_Number, Account_Description

    order by max(Trx_Date)

     

     

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans