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

0 Comments

Submit a Comment

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

Upcoming Events

october

07oct12:00 pm1:00 pmThe Three Paths to Business Central from Dynamics GP

08oct11:00 am12:00 pmConfab with Stoneridge - Livestream - The Vision and Strategy of Microsoft Business Systems

14oct10:00 am10:30 amThe Modern Manufacturer - Managing Complex Cost Modeling

14oct12:00 pm12:30 pmGenerating Custom Inspection or Process Forms

19octAll Day22Stoneridge Connect Fall 2020

22oct11:00 am12:00 pmConfab with Stoneridge - Livestream - Stoneridge Connect Recap

28oct10:00 am10:30 amThe Modern Manufacturer - Engineering Change Management: Introduction of NEW Functionality for Manufacturers Using Dynamics 365

november

11nov10:00 am10:30 amThe Modern Manufacturer - Tears and Trauma of MRP

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!

X