Quick Removal of old Sales Quotes Dyn GP 2018

  • Quick Removal of old Sales Quotes Dyn GP 2018

    Posted by Clay Tait on November 10, 2021 at 3:12 pm
    • Clay Tait

      Member

      November 10, 2021 at 3:12 PM

      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.

      ——————————
      dexteritydeveloper
      dexteritydeveloper@gmail.com
      https://keptonworking.blogspot.com/
      ——————————
      ——————————————-

    • Beat Bucher

      Member

      November 18, 2021 at 7:10 PM

      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)
      All-Star 2013
      ——————————
      ——————————————-

    Clay Tait replied 4 years, 6 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘Quick Removal of old Sales Quotes Dyn GP 2018’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now

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!