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
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
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.
I don't think there is any other possible way to achieve this.
Thanks,
Girish S.
Thanks, Girish S for your reply
Is there any possible way?
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.
André Arnaud de Cal...
294,137
Super User 2025 Season 1
Martin Dráb
232,879
Most Valuable Professional
nmaenpaa
101,158
Moderator