How to Recover a Deleted SmartList from SmartList Builder in Dynamics GP

by | April 30, 2020 | Dynamics GP

Uh oh. You’ve deleted a SmartList in Dynamics GP. Don’t worry, here are some instructions and code to will help you out. I’ve listed the following steps to recover from a deleted SmarLlist from SmartList Builder which was built on top of a core SmartList.

Step 1) Grab and restore last night’s backup into a new database (This is the only way to recover)

Step 2) Identify the ASI_Favorite_Type associated with the core SmartList

In this case the ASI_Favorite_Type is 203 which corresponds to Account Transactions

Step 3) Add back all the records where ASI_Favorite_Type = 203 (Here are some heavy lifting scripts)

The design for the script is to select the text of the insert statement followed by a conversion (to text) of the column contents records in the from database that need to be inserted into the database from which they are deleted. I’m using the RWGO as the end of record marker. Paste the script into your management studio then regex replaces RWGO with \nGO (a new line followed by the go command).

This select statement generates an insert statement for the records in the ASIEXP60 table.

This select statement generates an insert statement for the records in the ASIEXP81 table

This select statement generates an insert statement for the records in the ASITAB20 table

This select statement generates an insert statement for the records in the ASIEXP81 table

Step 4) Add back the main SLB record where SmartList_Name = ‘Account Transactions’

Open the SmartList to see all the stuff that was there before but was deleted when pressing the delete button on the SmartList builder window.

Here is some other information about how we have derived which tables are affected. This will give you a list of tables that might contain SmartList related data.

The results of the script generated above but commented and edited which of the tables I know may be affected.

At Stoneridge Software, our team has helped many clients with cases where a SmartList that was currently in use by someone on the team was accidentally deleted by someone. These scripts can be used by anyone with database access for the purpose of not calling on the experts. Another tip here would be to use field-level security to prompt for password for the delete button inside the SmarLlist Builder window. Please use the Contact Us button if you have any questions.

Related Posts


Submit a Comment

Your email address will not be published. Required fields are marked *

Upcoming Events


02jun2:00 pm2:30 pmBusiness Intelligence for Batch Manufacturers

16jun10:00 am10:30 amHow AP automation can speed up month-end close in D365 Finance

17jun11:00 am12:00 pmConfab Live with Stoneridge – Real Time Marketing Strategies for Success

23jun10:00 am10:30 amThe Modern Manufacturer: Cost Accounting in D365

30jun10:00 am10:30 amAP Automation Checklist for a 2022 Rebound

30jun2:00 pm2:30 pmAchieving Success: How Technology Is Helping Nonprofits Thrive


01jul11:00 am12:00 pmConfab Live with Stoneridge – Dataverse Virtual Entities

14jul12:00 pm12:30 pmBeyond Reporting - What Business Intelligence Can Do For Your Agribusiness

15jul11:00 am12:00 pmConfab Live with Stoneridge – Integration Strategies for End User Success

21jul10:00 am10:30 amThe Modern Manufacturer: Manufacturing Software in the Real World

21jul12:00 pm1:00 pmIs it Worth it to Upgrade to Dynamics 365 Finance and Supply Chain Management? - Everything AX Users Need to Consider

About Stoneridge
Stoneridge Software is a unique Microsoft Gold Partner, with emphasis on partner. With specialties in Microsoft Dynamics 365, Microsoft Dynamics AX, Microsoft Dynamics NAV, Microsoft Dynamics GP and Microsoft Dynamics CRM, we focus on attracting the most knowledgeable experts in the field to our team, and prioritize delivering stellar solutions with maximum impact for your business. At Stoneridge, we are deeply committed to your results. Each engagement is met with a dedicated team, ready to provide thorough, tailored, and expert service. Based in Minnesota, we intentionally “step into your shoes,” wherever you are. We focus on what you care about, and develop trusting, long-term relationships with our clients.

Subscribe To Our Blog

Sign up to get periodic updates on the latest posts.

Thank you for subscribing!