{"title":"MaxOccurs Property","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/properties/devenv-maxoccurs-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-maxoccurs-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-maxoccurs-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 a value that indicates the maximum number of times an element can occur.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Applies to","slug":"applies-to","at":138,"chars":85},{"level":2,"title":"Property value","slug":"property-value","at":223,"chars":294},{"level":2,"title":"Syntax","slug":"syntax","at":517,"chars":38},{"level":2,"title":"Remarks","slug":"remarks","at":555,"chars":428},{"level":2,"title":"Related information","slug":"related-information","at":983,"chars":40}],"text":"> Version: _Available or changed with runtime version 1.0._\nSets a value that indicates the maximum number of times an element can occur.\n## Applies to\n Xml Port Text Element\n Xml Port Table Element\n Xml Port Field Element\n## Property value\nValue|Available or changed with|Description\nOnce|runtime version 1.0|The element can occur at most once.\nUnbounded|runtime version 1.0|There is no maximum number of occurences.\nThe default values are the following:\nSourceType|Default\nTable|Unbounded\nText|Unbounded\nField|Once\n## Syntax\n```al\nMaxOccurs = Once;\n```\n## Remarks\nThe default value of the MaxOccurs property varies depending on the type of this element.\nThe minimum number of times an element can appear is determined by the value of the devenv-minoccurs-property.\nThe MinOccurs and MaxOccurs properties conform to the standard occurrence constraints that are used when defining XML schemas.\nThe minimum number can be either 1 or 0.\nThe maximum number can be either 1 or infinite.\n## Related information\ndevenv-properties"}