An extension package can contain both new and modified objects. In Microsoft Dynamics NAV 2016, the following object types can be added and included in an extension:
-
Pages
-
Tables
-
MenuSuites
-
Codeunits
You can also modify existing objects of the following types as permitted by your license:
-
Pages
-
Tables
-
Action Items
You cannot add or modify any other object types in this version. Also, you cannot delete any existing objects.
Important |
---|
You cannot modify any existing C/AL code, including code in codeunits and in triggers on existing objects. If you want to modify existing code, use the new C/AL eventing model. This restriction is only on existing code and objects. New pages, tables, and so on, can contain C/AL code as it is considered part of the new object. |
Restricted Properties
There are restrictions on certain property changes for modified objects. The following sections list the properties you cannot change. The cmdlets that create and install packages will halt with errors if any of these properties are changed in your extension.
Restricted Properties on Existing Page Modifications
You cannot change the values for the following properties for existing Microsoft Dynamics NAV pages in an extension.
-
AccessByPermission
-
AssistEdit
-
AutoSplitKey
-
CardPageID
-
CharAllowed
-
ContainerType
-
ControlAddIn
-
Data Type
-
DataLength
-
DateFormula
-
DelayedInsert
-
DeleteAllowed
-
DrillDown
-
DrillDownPageID
-
Editable
-
ExtendedDatatype
-
FieldClass
-
GroupType
-
ID
-
InsertAllowed
-
LinkedObject
-
Lookup
-
LookupPageID
-
MaxValue
-
MinValue
-
ModifyAllowed
-
MultipleNewLines
-
Name
-
NotBlank
-
Numeric
-
PageType
-
PartType
-
PasteIsValid
-
Permissions
-
PopulateAllFields
-
RefreshOnActivate
-
SourceExpr
-
SourceTable
-
SourceTableTemporary
-
SourceTableView
-
SubType
-
SystemPartID
-
TableRelation
-
TableType
-
TestTableRelation
-
ValidateTableRelation
-
ValuesAllowed
Most of these are typically not properties changed through customization as they can have a negative effect on the Microsoft Dynamics NAV deployment.
Restricted Properties on Existing Table Modifications
You cannot change the values for the following properties for existing tables and fields in an extension.
Table Properties | Field Properties |
---|---|
|
|
You can add table keys, but you cannot delete or modify existing keys.
You can add fields to a table group, but you cannot remove fields or groups.