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

august

05aug10:00 am10:30 amOn the Job with Dynamics 365 - Manufacturing Shipping / Receiving Department

05aug12:00 pm1:00 pmHow Ag Coops Can Simplify Processing Equity Payments using Levridge

12aug10:00 am10:30 amWhy Levridge Grain? How to Achieve Efficient and Accurate Scale Tickets

12aug12:00 pm1:00 pmThe Three Paths to Dynamics 365 Finance and Supply Chain from Dynamics AX

13aug11:00 am12:00 pmConfab with Stoneridge - Livestream - Inspire Keynote Breakdown

19aug10:00 am11:00 amWhat is Levridge? An Overview of the Ultimate Ag Solution

19aug12:00 pm12:30 pmThe Modern Manufacturer - Death by Safety Stock

27aug11:00 am12:00 pmConfab with Stoneridge - Livestream - Dynamics 365 2020 Wave 2 Preview

september

02sep10:00 am10:30 amThe Modern Manufacturer - Cycle Count Management

09sep11:00 am12:00 pmModernizing Batch Manufacturing - Ensuring Compliance and Quality Control

16sep10:00 am10:30 amThe Modern Manufacturer - Product Lifecycle Management

30sep10:00 am10:30 amThe Modern Manufacturer - Return Management

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