Notifications
Announcements
No record found.
Hi Expert,
I do the direct insert records from SQL server in a custom table in ax 2012
How can I do some logic in the insert method table? the insert method does not fire after direct SQL insert
Thanks
Table level insert method won't be called when you directly load data through SQL.
Also, it's not recommended to populate data to table through SQL.
It's better to insert record into the table via X++.
Thanks,
Girish S.
Thanks, Girish S for your reply
Is there any possible way?
I don't think there is any other possible way to achieve this.
No, there is no way to execute logic inside a method that isn't called at all.
This is just one of many reasons why using direct SQL statement is a bad idea, therefore the right approach is getting rid of it. If you explain your reasons for using a direct SQL statement, we might be able to suggest a better solution.
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 Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
André Arnaud de Cal... 467 Super User 2025 Season 2
Martin Dráb 420 Most Valuable Professional
BillurSamdancioglu 241 Most Valuable Professional