Bearbeiten

Freigeben über


CodeCop Warning AA0240

Email and Phone No must not be present in any part of the source code.

Description

Email and Phone No must not be present in any part of the source code that might be collected as telemetry data.

Reason for the rule

To prevent exposing personal data, make sure that Email or Phone No information is not available in the source code because that might be collected as telemetry data.

Bad code example

table 18 Customer
{
   ...
   fields
   {
      field(1; Email; Text[50]){ CaptionML = ENU = 'john.smith@contoso.com'; }
   }
   ...
}

Good code example

table 18 Customer
{
   ...
   fields
   {
      field(1; Email; Text[50]){ CaptionML = ENU = 'Email'; }
   }
   ...
}

Remarks

The following elements are checked in code:

  • Object names
  • Table captions
  • Table field names
  • Table field captions
  • Page captions
  • Page field names
  • Page field captions
  • Page field tooltips
  • Value of labels (in declaration)
  • Value of text constants
  • Translation files (tags <source>, <target>, <note>)
  • App manifest file (Name, Brief, Description, Publisher)

CodeCop Analyzer
Get Started with AL
Developing Extensions