We have ignored old quotes in our system for 3 years (back thru 2019) – is there a quick way to remove 2 and 3 year old quotes from within Dynamics GP, or even through SQL?
—————————— Clay Tait Tait Distributors Edmonton AB ——————————
Dexterity Developer
Member
November 11, 2021 at 1:21 AM
write a macro to move all quotes into a new batch and then delete the batch.
Hi Clay, Considering you may have setup multiple QUOTE type in SOP, you may have to run this a few times, but in general, it’s the fasted way to get rid of Sales Documents from the front-end. You need to have access to SQL to prepare the data though.Ā
In GP, check in Inquiry how many different Sales Quotes you may have:Ā You may check that in SOP Setup too, but this is quick and easy.Ā Once you figured that out, run a query in SQL against the SOP10100 table and get all the documents that are open (SOP10100) with the DOCID matching your Sales Quote ID.
select BACHNUMB,* from SOP10100 where DOCID like ‘STDQTE’
The result will show you if those documents are already assigned to a batch or not.
With this information on hand you then assign all the Sales Quotes to a single Sales Batch (existing one or a newly created one for that purpose) by using this script:
UPDATE SOP10100 set BACHNUMB = ‘SALES QUOTES’ WHERE DOCID = ‘STDQTE’
Once you have them all under a single Batch, you just go in GP, select the batch and delete it. That will get rid of all the related Sales Quotes.
—————————— Beat Bucher Business Analyst, Dynamics GP SME Montreal QC/Canada @GP_Beat http://www.gp-geek.com Montreal QC GPUG Chapter Leader MBS MVP (2015-2018) —————————— ——————————————-
Please note:
This action will also remove this member from your connections and send a report to the site admin.
Please allow a few minutes for this process to complete.
Report
You have already reported this .
Welcome to our new site!
Here you will find a wealth of information created for peopleĀ that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!