{"title":"Occurrence Property","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/properties/devenv-occurrence-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-occurrence-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-occurrence-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 specifies whether an attribute must occur in the data that is being imported or exported.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Applies to","slug":"applies-to","at":168,"chars":65},{"level":2,"title":"Property value","slug":"property-value","at":233,"chars":245},{"level":2,"title":"Syntax","slug":"syntax","at":478,"chars":43},{"level":2,"title":"Remarks","slug":"remarks","at":521,"chars":159},{"level":2,"title":"Related information","slug":"related-information","at":680,"chars":111}],"text":"> Version: _Available or changed with runtime version 1.0._\nSets a value that specifies whether an attribute must occur in the data that is being imported or exported.\n## Applies to\n Xml Port Field Attribute\n Xml Port Text Attribute\n## Property value\nValue|Available or changed with|Description\nRequired|runtime version 1.0|If the attribute must be part of the data. This is the default value.\nOptional|runtime version 1.0|If the attribute does not have to be part of the data.\n## Syntax\n```al\nOccurrence = Optional;\n```\n## Remarks\nThis property is primarily used to ensure that the XML data that you are importing conforms to the data structure in Dynamics 365 Business Central.\n## Related information\nGet Started with AL<../devenv-get-started>\nDeveloping Extensions<../devenv-dev-overview>"}