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 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)
  • André Arnaud de Calavon Profile Picture
    298,609 Super User 2025 Season 2 on at
    RE: Delete_From command

    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.

  • Jesus R. ABASCAL Profile Picture
    1,450 on at
    RE: Delete_From command

    Thanks Martin!!

  • Suggested answer
    Jesus R. ABASCAL Profile Picture
    1,450 on at
    RE: Delete_From command

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

    :)

  • Suggested answer
    Martin Dráb Profile Picture
    236,160 Most Valuable Professional on at
    RE: Delete_From command

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

  • Jonathan  Halland Profile Picture
    11,310 on at
    RE: Delete_From command

    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.

  • Verified answer
    Jonathan  Halland Profile Picture
    11,310 on at
    RE: Delete_From command

    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.

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Delete_From command

    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.

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 AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

#1
Guy Terry Profile Picture

Guy Terry 2 Moderator

#1
Rahul Shah Profile Picture

Rahul Shah 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans