Occurrence Property

Version: Available or changed with runtime version 1.0.

Sets a value that specifies whether an attribute must occur in the data that is being imported or exported.

Applies to

  • Xml Port Field Attribute
  • Xml Port Text Attribute

Property value

ValueAvailable or changed withDescription
Requiredruntime version 1.0If the attribute must be part of the data. This is the default value.
Optionalruntime version 1.0If the attribute does not have to be part of the data.

Syntax

Occurrence = Optional;

Remarks

This property is primarily used to ensure that the XML data that you are importing conforms to the data structure in Dynamics 365 Business Central.

Get Started with AL
Developing Extensions