| bc-version |
domain |
keywords |
technologies |
countries |
application-area |
|
|
privacy |
| error |
| message |
| confirm |
| notification |
| telemetry |
| pii |
|
|
|
|
Error logs to telemetry; Message, Confirm, and Notification do not
Description
The privacy concern with user-facing text is not what the authenticated user sees — it is what the platform exports to telemetry. Error is captured automatically; Message, Confirm, StrMenu, and Notification are not. Reviews that flag PII in any user-facing dialog over-report. Reviews that ignore PII in Error under-report. The distinction is the delivery surface, not the presence of a person's name on screen.
Best Practice
Free-text business content — customer names, email addresses, document numbers — is acceptable in Message, Confirm, and Notification. Treat Error text as if it will be read by telemetry consumers, because it will be, but use direct Error substitution rather than pre-building the message. Error(MyErr, EmailAddress) is telemetry-safe; Error(StrSubstNo(..., EmailAddress)) is not.
See sample: error-is-logged-to-telemetry-message-is-not.good.al.
Anti Pattern
Embedding customer emails, phone numbers, addresses, or names as literals in an Error label or baking them into a Text value with StrSubstNo before calling Error. The user also sees Message and Confirm, but those are not logged. Error is logged, so dynamic customer data must stay as direct substitution arguments.
See sample: error-is-logged-to-telemetry-message-is-not.bad.al.