Skip to content

[Bug]: PC0037 and TableType = CRM #369

Description

@TKapitan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions