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 :
Microsoft Dynamics NAV (Archived)

How to delete table data through report

(0) ShareShare
ReportReport
Posted on by

Hello All,

How to delete table data through report

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Mohana Yadav Profile Picture
    60,967 Super User 2025 Season 2 on at
    RE: How to delete table data through report

    tablerec.deleteall;

  • Verified answer
    CDsilva Profile Picture
    4,188 on at
    RE: How to delete table data through report

    Hi,

    On OnAfterGetRecord() trigger of the DataItem write the below code

    Record.DELETEALL; //Record is TableName

    this will delete all Table data.

    If you want to delete only some records then add the condition then Delete

    OnAfterGetRecord()

    IF (Sales.DocType ='Invoice') and (Sales.Amount = 0 ) THEN //This is an example

    DELETE;

    ELSE

    CurrReport.SKIP;

  • Community Member Profile Picture
    on at
    RE: How to delete table data through report

    Thanks a lot chris

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 > 🔒一 Microsoft Dynamics NAV (Archived)

#1
Saurav.Dhyani Profile Picture

Saurav.Dhyani 2 Super User 2025 Season 2

#2
RK-25090803-0 Profile Picture

RK-25090803-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans