Skip to main content

Notifications

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:
  • Richard Wheeler Profile Picture
    75,848 Moderator on at
    RE: Using SQL to get a list of Smartlists

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

  • Richard Wheeler Profile Picture
    75,848 Moderator on at
    RE: Using SQL to get a list of Smartlists

    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
    RE: Using SQL to get a list of Smartlists

    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
    RE: Using SQL to get a list of Smartlists

    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.

  • Suggested answer
    Derek Albaugh Profile Picture
    on at
    RE: Using SQL to get a list of Smartlists

    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

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >

Product updates

Dynamics 365 release plans