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...
Suggested Answer

Vendor Clean Up

(3) ShareShare
ReportReport
Posted on by 35
Hello,
We are wanting to clean up our vendor file by disabling vendors that we haven't received invoices from in the past two years, including ones that were loaded to the system, but we never received an invoice from. In SL there was a report that would show the last payment date and last invoice date for a vendor, it would also show if a vendor had never sent an invoice. I can't remember the name of it but that is what we used to clean up vendors in SL. I am having a difficult time trying to pull something that can give me the same information in BC.  Any suggestions on what I can use to pull that data in BC? Existing reports?
Thanks!
Lisa
I have the same question (0)
  • Suggested answer
    Teagen Boll Profile Picture
    1,837 Super User 2026 Season 1 on at
    Hi Lisa,
    You will have to do a few different things for vendor cleanup. There isn't a last payment date or invoice date field but you can still use some filters.
     
    Open your vendor list and run a date filter to look at Vendors who have been paid in a certain date range or have invoices in a date range. You can accomplish that by entered a "Filter Totals by:" date filter (I am entering my dates as 3 months before the current month all the way up to todays date (CM-3M..T):
    And then in your vendor list you will be able to see if there was any activity for payments or invoices (you may need to personalize your page and add additional columns):
    You can also open that page in excel by using the share button and it will remember your filter information.
     
    Old vendors with low activity could be blocked. If a vendor has never had any activity you could also delete them. You can also merge records if there are ever duplicates.
     
    I would also recommend practicing frequent month end data hygiene. This link here walks through the recommended Month End Processes and Cleanup process for AP in BC: Month End Process with Business Central: Accounts Payable | Catapult ERP
     
    Hopefully that gives you a good starting point!
    Teagen Boll, CPA
    Social: LinkedIn
  • Lisa Andrews61 Profile Picture
    35 on at
    Thank you so much Teagen! This is a great start! I was trying to figure out how to use the VLE to do this but wasn't thinking along the correct lines!
    Take care,
    Lisa
  • Lisa Andrews61 Profile Picture
    35 on at
    Hi Teagen,
     
    I wasn't able to use your suggestion - I don't have Invoice Amounts as an available field - It is on my page inspection list, but we don't have any on staff that can pull that data element into the available fields list. I will see if I can contact a consultant to get them to do it. Thanks! Hopefully you will hear back that it was the perfect solution for what I needed :)
    Take care,
    Lisa
  • Suggested answer
    YUN ZHU Profile Picture
    99,697 Super User 2026 Season 1 on at
    Hi, check the following page
     
  • Suggested answer
    OussamaSabbouh Profile Picture
    14,008 Super User 2026 Season 1 on at
    Hello Lisa,
    There isn’t really a single standard BC report that gives you exactly “last invoice date / last payment date / never invoiced” in one clean vendor cleanup report like SL did; the closest practical option is to use Vendor Ledger Entries (or the Detailed Vendor Ledger Entries Power BI report if you have it) and filter/export from there: filter Document Type = Invoice to find each vendor’s latest invoice date, filter Document Type = Payment to find latest payment date, and vendors with no invoice entries at all are your “never invoiced” vendors; for a quick out-of-box report, Purchase Statistics (Report 312) can help with vendor activity, but for cleanup purposes Open in Excel from Vendor Ledger Entries is usually the easiest and most useful approach because you can summarize by vendor and identify anyone with no invoices in the last 2 years or none ever.
     
    Regards,
    Oussama Sabbouh
  • Suggested answer
    AndrewThomas81 Profile Picture
    551 on at
    I would download the VLE date filtered and do a lookup in excel to the vendor list.
     
  • Suggested answer
    RNS Profile Picture
    6 on at
    Hello Lisa,
     
    Use powerquery in excel.
    Publich Vendor Ledger Entries in Web Services.
    Open Excel and connect from Data -> Get Data -> From Online Services -> Microsoft Dynamics 365
    Paste the OData V4 URL
    when connected, edit the query to the below code:
    PS:
    • Replace the bold source variables from your environment.
    • You can change the inactive flag to the desired date range
     
    Code:
    let
        Source = OData.Feed("https://api.businesscentral.dynamics.com/v2.0/[Tenant ID]/[Environment Name]/ODataV4/Company([Company Name])/[Service Name]", null, [Implementation="2.0"]),
        #"Selected Columns" = Table.SelectColumns(Source,
            {
                "Vendor_No",
                "Vendor_Name",
                "Posting_Date",
                "Document_Type",
                "Amount_LCY"
            }
        ),
        #"Changed Type" = Table.TransformColumnTypes(#"Selected Columns",
            {
                {"Posting_Date", type date}
            }
        ),
        #"Filtered Invoices" = Table.SelectRows(#"Changed Type",
            each [Document_Type] = "Invoice"
        ),
        #"Grouped Rows" = Table.Group(#"Filtered Invoices",
            {"Vendor_No", "Vendor_Name"},
            {
                {"Last Invoice Date", each List.Max([Posting_Date]), type nullable date},
                {"Invoice Count", each Table.RowCount(_), Int64.Type},
                {"Total Amount LCY", each List.Sum([Amount_LCY]), type number}
            }
        ),
        #"Added Last Activity" = Table.AddColumn(#"Grouped Rows",
            "Last Activity Date",
            each [Last Invoice Date]
        ),
        #"Added Inactive Flag" = Table.AddColumn(#"Added Last Activity",
            "IsInactive",
            each
                let
                    cutoff = Date.AddYears(Date.From(DateTime.LocalNow()), -2)
                in
                    [Last Activity Date] = null or [Last Activity Date] < cutoff,
            type logical
        )
    in
        #"Added Inactive Flag"
     
    Regards,
    Ralph
  • Lisa Andrews61 Profile Picture
    35 on at
    Thank you all for your suggestions! I will look into trying them all! I really need to think outside the box when using BC - I feel like we lost some functionality when we switched to BC but I am glad to have this forum to look for help.
     
    Thanks,
    Lisa
  • Suggested answer
    Kamal Khakhkhar Profile Picture
    3,029 on at
    Hii There ,
    as per @YUN ZHU Suggested You can create a solution like that so using that like that if vendor balance is 0 then you can mark vendor to block .
    you can create a batch report through that you can update vendor to block.
    if you found answer please mark it answered .

    Thank You.
    Kamal Khakhkhar

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,948 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,048 Super User 2026 Season 1

#3
Teagen Boll Profile Picture

Teagen Boll 727 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans