D365 F&O X++ code Update_Recordset and SkipDataMethods still calling update method
It sounds like you're encountering an issue where the update_recordset statement in Dynamics 365 Finance & Operations (D365 F&O) X++ code is still calling the update method, even though you're using SkipDataMethods. This can be frustrating!
Here's a brief overview of what might be happening:
update_recordsetStatement: This statement is designed to update multiple records in one database trip, which improves performance by reducing communication between the application and the database.SkipDataMethods: This setting is used to skip certain methods, such asupdate,insert, anddelete, to avoid performance issues.
However, if update_recordset is still calling the update method, it might be due to certain conditions or configurations that are causing the operation to fall back to record-by-record operations.
Answer:
Use the below to resolve the issue:
myTable.skipEvents(true);