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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Delete_From command

(0) ShareShare
ReportReport
Posted on by 1,450

Hello,

I have a doubt. When I use a delete_from command to remove records of a table, will the delete actions of table be executed?

Thank you in advence.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Not sure to understand your question. Do you want to know if "delete_from" use the "delete" method of the table ?

    If this is your question the answer is : no.

    delete_from simultaneously removes multiple records, it doesn't use a delete in a loop or something like that.

  • Verified answer
    Jonathan  Halland Profile Picture
    11,310 on at

    Hi Jesus.

    Obviously the easiest way to  determine this is to perform a quick test in a job in AX.

    I've done a test in AX2012 R3 and it does perform the delete actions as described, however I have found inconsistent results in the past. so check your specific instance.

  • Jonathan  Halland Profile Picture
    11,310 on at

    Hi Cyril. I think Jesus was referring to the actual delete actions specified in the AOT. I believe you are correct regarding the delete method itself and thats where I have found inconsistencies.

  • Suggested answer
    Martin Dráb Profile Picture
    237,961 Most Valuable Professional on at

    Yes, unless you call skipDeleteActions(true) on the buffer. Read the documentation for set-based operations, you'll learn all these things there.

  • Suggested answer
    Jesus R. ABASCAL Profile Picture
    1,450 on at

    Thanks Cyril and Jonathan. I have done a test to check if delete_from execute delete actions and it does perform correctly.

    :)

  • Jesus R. ABASCAL Profile Picture
    1,450 on at

    Thanks Martin!!

  • André Arnaud de Calavon Profile Picture
    301,069 Super User 2025 Season 2 on at

    Hi Jesus,

    If the question was answered, would you mind to mark the correct answer? Then the thread will get the status answered and other persons with the same question can see the correct answer that helped you.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans