-
Notifications
You must be signed in to change notification settings - Fork 32
LC0035
Arthur van de Vondervoort edited this page Apr 6, 2024
·
5 revisions
This rule ensures that the AllowInCustomizations
property is set appropriately for fields on table(extensions) that are omitted on the page. The AllowInCustomizations
property manage the visibility of fields in the UI, mitigating potential risks associated with unintended exposure.
table 50100 "My Setup Table"
{
fields
{
field(1; "Primary Key"; Code[10])
{
AllowInCustomizations = Never;
Caption = 'Primary Key';
DataClassification = SystemMetadata;
NotBlank = false;
}
}
}
field(1; "My Secret"; Guid)
{
Access = Local; // The diagnostic will not be raised if the Access is set to Local or Protected
}
When setting the Access Property of a field on Local
or Protected
, the diagnostic will not be raised.
- AllowInCustomizations Property - Business Central | Microsoft Learn
- Dynamics 365 Business Central: introducing the new AllowInCustomization field property – Stefano Demiliani
- Business Central 2023 wave 2 (BC23): Ability to define fields in page customizations (Add new fields in Page Customization Object) | Dynamics 365 Lab (yzhums.com)