{"title":"AssignmentCompatibility Property","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/properties/devenv-assignmentcompatibility-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-assignmentcompatibility-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-assignmentcompatibility-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 whether an Enum can be assigned to from another Enum type.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Applies to","slug":"applies-to","at":222,"chars":482},{"level":2,"title":"Syntax","slug":"syntax","at":704,"chars":52},{"level":2,"title":"Related information","slug":"related-information","at":756,"chars":49}],"text":"> Version: _Available or changed with runtime version 5.0._\nSets whether an Enum can be assigned to from another Enum type. This is intended for backwards compatibility when splitting existing Options into multiple Enums.\n## Applies to\n Enum Type\nThe default value of this property is false.\n> IMPORTANT\n> This property provides backwards compatibility in certain cases when converting from options to enums. It should not be used for enums that are not converted from options.\n> Because the assignment is done by ordinal value without validation, there is no guarantee that the target will have a corresponding value. Special attention should be made if either source or target is marked as extensible.\n## Syntax\n```al\nAssignmentCompatibility = true;\n```\n## Related information\n../devenv-extensible-enums"}