# 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
```al
table 18 Customer
{
   ...
   fields
   {
      field(1; Email; Text[50]){ CaptionML = ENU = 'john.smith@contoso.com'; }
   }
   ...
}
```
## Good code example
```al
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)
## Related information
CodeCop Analyzer<codecop>
Get Started with AL<../devenv-get-started>
Developing Extensions<../devenv-dev-overview>

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/analyzers/codecop-aa0240, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/analyzers/codecop-aa0240/
