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 :
Finance | Project Operations, Human Resources, ...
Answered

Using SQL to get a list of Smartlists

(0) ShareShare
ReportReport
Posted on by 75,848 Moderator

Is it possible to use SQL to write a script to provide a listing of all Smartlists across all products? I am looking for the main folder and then all Smartlists under each folder. What are the proper tables and linkages?

Categories:
I have the same question (0)
  • Suggested answer
    Derek Albaugh Profile Picture
    on at

    The ASITAB30 table seems to have a list of the default SmartList reports.

    For custom SmartList reports, the ADH00100 would probably be the easiest to use.

    SmartList Favorites are held in the ASIEXP81 table along with custom SmartList reports.

    If using SmartList Builder from eOne, they have their own tables as well.

    Thanks

  • Richard Wheeler Profile Picture
    75,848 Moderator on at

    Thanks, it appears they have been using Smartlist Designer as there are custom Smartlists. The problem I have is they just created a new company with a different fiscal year. The GL Smartlists that exist do not match this new company and since they were deployed as system cannot be used. I will recreate them just for this new company.

    Period 1 in this new company is January where in all the other companies Period 1 is July.

  • Verified answer
    DebCummings Profile Picture
    75 on at

    This works great!

     

    use DYNAMICS

    select isnull(TRANSVAL, '') SmartList, ASI_Favorite_Name Favorite,

       Module = case when asi_favorite_dict_id = 3830 then 'SLB' else 'GP' end,

       a.CMPANYID, isnull(CMPNYNAM,'') CompanyName, USRCLASS, USERID

          from [ASIEXP81]​ a

          left join [ASITAB30] b on a.[ASI_Favorite_Name] =b.UNTRSVAL

          left join [SY01500] c on a.cmpanyid = c.cmpanyid

  • Richard Wheeler Profile Picture
    75,848 Moderator on at

    Thanks, it appears they have been using Smartlist Designer as there are custom Smartlists. The problem I have is they just created a new company with a different fiscal year. The GL Smartlists that exist do not match this new company and since they were deployed as system cannot be used. I will recreate them just for this new company.

    Period 1 in this new company is January where in all the other companies Period 1 is July.

  • Richard Wheeler Profile Picture
    75,848 Moderator on at

    Thanks, this does work great. I will add this to my GP SQL bag of tricks!

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 522 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans