web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Delete Blank Purchase Quotes

(4) ShareShare
ReportReport
Posted on by 224
Hi, I'm trying to select multiple lines and delete purchase Quotes but I can't, I noticed that if I select 2 lines the 'delete' is greyout. I also tried Config pack in our sandbox but if I select 'delete table' it will delete PO (because they use the same table 38)
 
Any tips how to do this faster?
 
 
thanks,
I have the same question (0)
  • Marcella Affonso Profile Picture
    224 on at
    Update: I used 'edit in Excel' and it worked, thanks!
  • Verified answer
    Sohail Ahmed Profile Picture
    11,169 Super User 2026 Season 1 on at

    Hi Marcella,

     

    You’re right — since Purchase Quotes and Purchase Orders share the same table (Table 38 - Purchase Header), deleting quotes selectively can be tricky using a configuration package.

     

    Here are two practical options:

     
     

    ✅ Option 1: Use Edit in Excel

    You can use the Edit in Excel feature from the Purchase Quotes list page. Once exported:

    • Filter by Document Type = Quote
    • Remove the ones you want to keep
    • Delete the rest directly from Excel and publish — this allows batch deletion safely.
     

    Mark this answer as verified if it helps you.

  • Suggested answer
    Sohail Ahmed Profile Picture
    11,169 Super User 2026 Season 1 on at
    ✅ Option 2: Add Custom Action Button in AL

    If you're a developer or working with one, you can extend the Purchase Quote List page and add a new action to delete selected quotes. Here's a quick example:
     
    codeunit 50100 "PurchaseQuoteMgt"
    {
        Permissions = 
            tabledata "Purchase Header" = RIMD,
            tabledata "Purchase Line" = RIMD;
    
        procedure DeleteSelectedQuotes(var RecPurchaseHeader: Record "Purchase Header")
        var
            PurchLine: Record "Purchase Line";
        begin
            if RecPurchaseHeader.FindSet() then
                repeat
                    PurchLine.SetRange("Document Type", RecPurchaseHeader."Document Type");
                    PurchLine.SetRange("Document No.", RecPurchaseHeader."No.");
    
                    if PurchLine.FindSet() then
                        PurchLine.DeleteAll();
    
                    RecPurchaseHeader.Delete();
                until RecPurchaseHeader.Next() = 0;
        end;
    }
    
     
     
    pageextension 50101 "ExtPurchaseQuoteList" extends "Purchase Quote List"
    {
        actions
        {
            addlast(Processing)
            {
                action(DeleteSelectedQuotes)
                {
                    Caption = 'Delete Selected Quotes';
                    Image = Delete;
                    trigger OnAction()
                    var
                        SelectedQuotes: Record "Purchase Header";
                        QuoteMgt: Codeunit "PurchaseQuoteMgt";
                    begin
                        CurrPage.SetSelectionFilter(SelectedQuotes);
                        QuoteMgt.DeleteSelectedQuotes(SelectedQuotes);
                    end;
                }
            }
        }
    }
    
     
     
    Mark this answer as verified if it helps you.
  • Suggested answer
    RockwithNav Profile Picture
    8,941 Super User 2026 Season 1 on at
    Edit in Excel should be the first step as its the easiest one.
    You can use configuration package as well, it will do the same job.
  • Suggested answer
    Andrés Arias Profile Picture
    5,166 Super User 2026 Season 1 on at
    Hello,
     
    The simplest thing would be to delete using the Edit option in excel.
     
    I hope I can help.
     
    Regards,
     
    Andres
     
  • Suggested answer
    YUN ZHU Profile Picture
    99,055 Super User 2026 Season 1 on at
    Hi, hope the following helps as well.
    Dynamics 365 Business Central: How to bulk delete data on a list page that includes a Card page (For example, bulk delete items on the Item List page)
     
    Thanks.
    ZHU

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,926 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,158 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 533 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans