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

Value Available or changed with Description
Required runtime version 1.0 If the attribute must be part of the data. This is the default value.
Optional runtime version 1.0 If 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.

See Also

Get Started with AL
Developing Extensions