{"title":"MinOccurs Property","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/properties/devenv-minoccurs-property/","by":"JOP-AL","license":"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.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-minoccurs-property","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Sets the minimum number of times that an element can occur.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Applies to","slug":"applies-to","at":120,"chars":85},{"level":2,"title":"Property value","slug":"property-value","at":205,"chars":192},{"level":2,"title":"Syntax","slug":"syntax","at":397,"chars":38},{"level":2,"title":"Remarks","slug":"remarks","at":435,"chars":415},{"level":2,"title":"Related information","slug":"related-information","at":850,"chars":48}],"text":"> Version: _Available or changed with runtime version 1.0._\nSets the minimum number of times that an element can occur.\n## Applies to\n Xml Port Text Element\n Xml Port Field Element\n Xml Port Table Element\n## Property value\nValue|Available or changed with|Description\nZero|runtime version 1.0|There is no minimum number of occurences.\nOnce|runtime version 1.0|The element must occur at least once.\n## Syntax\n```al\nMinOccurs = Zero;\n```\n## Remarks\nThe 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.\nIf 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.\nThe maximum number can be either 1 or infinite.\n## Related information\ndevenv-maxoccurs-property"}