{"title":"NamespacePrefix Property","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/properties/devenv-namespaceprefix-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-namespaceprefix-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-namespaceprefix-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":"Specifies the namespace prefix on an XmlPort element.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Applies to","slug":"applies-to","at":114,"chars":136},{"level":2,"title":"Syntax","slug":"syntax","at":250,"chars":44},{"level":2,"title":"Remarks","slug":"remarks","at":294,"chars":338},{"level":2,"title":"Related information","slug":"related-information","at":632,"chars":111}],"text":"> Version: _Available or changed with runtime version 1.0._\nSpecifies the namespace prefix on an XmlPort element.\n## Applies to\n Xml Port Text Element\n Xml Port Field Element\n Xml Port Table Element\n Xml Port Field Attribute\n Xml Port Text Attribute\n## Syntax\n```al\nNamespacePrefix = 'bc';\n```\n## Remarks\nYou can only set the property to a prefix that is declared in the devenv-namespaces-property of the XMLport.\nThis property only applies to element node types and will be ignored if it is set in textattribute and fieldattribute nodes.\nLearn more about using namespaces with XMLports in ../devenv-using-namespaces-with-xmlports.\n## Related information\nGet started with AL<../devenv-get-started>\nDeveloping extensions<../devenv-dev-overview>"}