web
You’re offline. This is a read only version of the page.
close
Skip to main content
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)
  • Rafael Ruiz J Profile Picture
    10 on at
    RE: How to delete multiple unposted sales invoice at the same time?

    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!

  • Verified answer
    YUN ZHU Profile Picture
    92,077 Super User 2025 Season 2 on at
    RE: How to delete multiple unposted sales invoice at the same time?

    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

  • Suggested answer
    RockwithNav Profile Picture
    8,217 Super User 2025 Season 2 on at
    RE: How to delete multiple unposted sales invoice at the same time?

    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.

  • Suggested answer
    JAngle Profile Picture
    117 on at
    RE: How to delete multiple unposted sales invoice at the same time?

    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

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 3,878

#2
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 3,405

#3
Sumit Singh Profile Picture

Sumit Singh 2,865

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans