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

Notifications

Announcements

Community site session details

Community site session details

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

How to delete multiple unposted sales invoice at the same time?

(0) ShareShare
ReportReport
Posted on by 10

Hello, 

I've imported several sales invoices to the system but need to delete them as they're no longer needed. 

These invoices are only imported, not posted. 

Is there a way to delete all of them at once? 

There's about 200 invoices so it would be time-consuming to delete them one by one. 

Any help would be appreciated!

I have the same question (0)
  • Suggested answer
    JAngle Profile Picture
    150 on at

    Without development there are two ways you can try- providing this isn’t on premise.

    Using Power automate. Create a flow where the trigger is a button. Add a step for the http connector. Go to the web services page and get a url for the sales invoices. You need the ID of the invoice - guid. Use that url in the http step. Add a new step using the BC connector and choose the delete record option. Choose the relevant table. Power Automate will add a loop. I have some blogs for working with Power Automate if this is a new area. Link on my profile

    Depending on whether you use the sales header for other documents you could use a configuration package. There is an option to delete all before processing. Do a dummy import to trick the tables into having the data deleted.

    Failing those there is a deletion tool but it’s development: github.com/.../Data-Deletion-Tool

  • Suggested answer
    RockwithNav Profile Picture
    8,802 Super User 2026 Season 1 on at

    What Josh mentioned is the perfect one just I will say go with Configuration Package I will say, trick it and its the simplest one.

  • Verified answer
    YUN ZHU Profile Picture
    97,288 Super User 2026 Season 1 on at

    Hi, as Josh Anglesea mentioned, I think the easiest way is to use Configuration Package.

    pastedimage1627872956292v1.png

    In addition, I think using Edit in Excel is also a good choice.

    pastedimage1627873193162v2.png

  • Rafael Ruiz J Profile Picture
    28 on at

    Hi Yun, I have used this option for delete records, but when i try it for deleting these records, I get the message:

    "A DotNet variable has not been instantiated. Attempting to call Microsoft.Dynamics.Platform.Integration.Office.FilterCollectionNode.Collection in CodeUnit Edit in Excel Impl.: InsertDataIntoFilterCollectionNode"

    I am using BC clod version.

    any idea?

    Thanks!

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

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 2,170 Super User 2026 Season 1

#2
Dhiren Nagar Profile Picture

Dhiren Nagar 1,283 Super User 2026 Season 1

#3
YUN ZHU Profile Picture

YUN ZHU 1,104 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans