Recommend using <Set|Add>LoadFields #155
Replies: 1 comment 1 reply
-
|
Thanks for raising the idea! I’ve created a new rule for this in PlatformCop: Do not use partial records before write operations (PC0031). It is now available in the alpha release It would be great if you could try it out and share some feedback on the new rule and its behavior. For now, it’s limited to local variables, similar to the PC0030 rule. In the future, we may expand it to include global variables and/or parameters but for now I left this out-of-scope as it would increase the complexity of the rule significantly. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
As we now and then have to troubleshoot issues with incorrect usage of SetLoadFields, it would be great to revise some of the ideas listed here StefanMaron/BusinessCentral.LinterCop#218
Specific case we encountered
Beta Was this translation helpful? Give feedback.
All reactions