Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

how to delete multiple items, which have no transactions

(0) ShareShare
ReportReport
Posted on by

What's best to way delete the multiple items? I have used Excel to upload the data but it looks like that the items need to be done again. There are no transactions added to any item. I can remove the items one by one but need a way to remove them in bulk to save time.

Thanks in advance for your help!

  • Suggested answer
    Inge M. Bruvik Profile Picture
    32,718 Moderator on at
    RE: how to delete multiple items, which have no transactions

    By using the show more options in the item list, you can chose select more. Mark all items you want to delete and then delete them in bulk.

    Definitely the simplest way.

    pastedimage1659655682562v2.png

  • Suggested answer
    divyeshchitte Profile Picture
    950 on at
    RE: how to delete multiple items, which have no transactions

    You have to add Code to delete Multiple Item base on condition

    Below is the code, you can add some more filters based upon your conditions

    CLEAR(Item);

    Item.RESET();

    Item.SETRANGE(Inventory,0);

    IF Item.FINDSET THEN BEGIN

     ItemLedgerEntry.RESET();

     ItemLedgerEntry.SETRANGE(ItemLedgerEntry."Item No.",Item."No.");

     IF NOT ItemLedgerEntry.FINDFIRST THEN

       Item.DELETE(TRUE);

    END;

    Name DataType Subtype Length

    Item Record Item

    ItemLedgerEntry Record Item Ledger Entry

  • Suggested answer
    YUN ZHU Profile Picture
    62,477 Moderator on at
    RE: how to delete multiple items, which have no transactions

    As far as I know it is not possible to delete part of the data using Edit in Excel and Configuration Package, this may need to be customized.
    Hope other experts can give you better advice.

    Hope this helps.

    Thanks.

    ZHU

  • Suggested answer
    Nitin Verma Profile Picture
    20,991 Moderator on at
    RE: how to delete multiple items, which have no transactions

    Hi,

    Please use the Configuration Package functionality to define the table ID 27 and then delete them, please follow the below link

    community.dynamics.com/.../price-list-sales

  • Suggested answer
    MahGah Profile Picture
    15,407 on at
    RE: how to delete multiple items, which have no transactions

    Hi

    Please see this article that describe all possible method (without development) 

    navinsights.net/.../

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

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

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

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans