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 SL (Archived)

Never used GL accounts DSL

(0) ShareShare
ReportReport
Posted on by

Hi

Does anyone have a script to find never used GL accounts in DSL?

thanks

*This post is locked for comments

I have the same question (0)
  • RayD Profile Picture
    239 on at

    select * from Account where not Acct in (select distinct Acct from GLTRan)

  • Community Member Profile Picture
    on at

    Thanks Raymond, I left out one parameter. Is there a way to make this company specific or identify the company?

  • RayD Profile Picture
    239 on at

    Declare @Cpny [char](10)

    select @Cpny ='CpnyId'

    select * from Account where not Acct  in (select distinct Acct  from GLTRan where CpnyId = @Cpny)

    Change the value for Parameter @Cpny to your Company Id

    You will get a list of accounts unused for that Company

    Ray

  • Community Member Profile Picture
    on at

    thank you!

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 SL (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans