# MinOccurs Property
> Version: _Available or changed with runtime version 1.0._
Sets the minimum number of times that an element can occur.
## Applies to
 Xml Port Text Element
 Xml Port Field Element
 Xml Port Table Element
## Property value
Value|Available or changed with|Description
Zero|runtime version 1.0|There is no minimum number of occurences.
Once|runtime version 1.0|The element must occur at least once.
## Syntax
```al
MinOccurs = Zero;
```
## Remarks
The maximum number of times an element can appear is determined by the value of the devenv-maxoccurs-property. The MinOccurs and MaxOccurs properties conform to the standard occurrence constraints that are used when defining XML schemas.
If you use Lazy API for XML (LAX), then the minimum number is 1. If you do not use LAX, then the minimum number is 0.
The maximum number can be either 1 or infinite.
## Related information
devenv-maxoccurs-property

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-minoccurs-property, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/properties/devenv-minoccurs-property/
