Analyzer
PlatformCop
Issue type
False positive (diagnostic fires when it shouldn't)
Rule ID
PC0037
Description
I believe PC0037 should have exception for TableType = CRM. While you can write OnValidate trigger it can lead to wrong assumptions - the trigger would work only for changes done through the AL code not in dataverse.
Based on my recent experience this rule misled agents to create multiple OnValidate expecting that this also can validate input from CRM (even though the reasoning mentioned that this won't work, agent decided that due to this warning it may work and decided to implement OnValidate logic).
AL code to reproduce
No response
Additional context
No response
Analyzer
PlatformCop
Issue type
False positive (diagnostic fires when it shouldn't)
Rule ID
PC0037
Description
I believe PC0037 should have exception for TableType = CRM. While you can write OnValidate trigger it can lead to wrong assumptions - the trigger would work only for changes done through the AL code not in dataverse.
Based on my recent experience this rule misled agents to create multiple OnValidate expecting that this also can validate input from CRM (even though the reasoning mentioned that this won't work, agent decided that due to this warning it may work and decided to implement OnValidate logic).
AL code to reproduce
No response
Additional context
No response