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
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.
Thanks Martin!!
Thanks Cyril and Jonathan. I have done a test to check if delete_from execute delete actions and it does perform correctly.
:)
Yes, unless you call skipDeleteActions(true) on the buffer. Read the documentation for set-based operations, you'll learn all these things there.
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.
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.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 2 Most Valuable Professional
Guy Terry 2 Moderator
Rahul Shah 2