{"title":"DataPerCompany Property","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/properties/devenv-datapercompany-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-datapercompany-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-datapercompany-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 whether the table data applies to all companies in the database or only the current company.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Applies to","slug":"applies-to","at":181,"chars":21},{"level":2,"title":"Property Value","slug":"property-value","at":202,"chars":111},{"level":2,"title":"Syntax","slug":"syntax","at":313,"chars":43},{"level":2,"title":"Remarks","slug":"remarks","at":356,"chars":923},{"level":2,"title":"Related information","slug":"related-information","at":1279,"chars":79}],"text":"> Version: _Available or changed with runtime version 1.0._\nSets a value that indicates whether the table data applies to all companies in the database or only the current company.\n## Applies to\n Table\n## Property Value\nTrue if data is available only to this company; otherwise, false. The default value is true.\n## Syntax\n```al\nDataPerCompany = true;\n```\n## Remarks\nWhether the value of this property can be changed is dependent on if the table holds data or not.\nThe value true means that data is available to the current company only, this is the default value. You can only set this property to true if the table is empty in all companies, or if the table holds data in only one company. You cannot change the value to false if there is data in the table in any of the companies.\n> NOTE\n> Switching to DataPerCompany requires you to synchronize the extension that includes the table, and any extension that extends the table, by using the ForceSync mode. Otherwise, you'll get an error like: `sync-navapp : Table '' ::The table '' changed datapercompany from 'False' to 'True' and that is not allowed.`. For more information about syncing an extension, see Sync-NavApp cmdlet<https://learn.microsoft.com/powershell/module/microsoft.dynamics.nav.apps.management/sync-navapp>.\n## Related information\ndevenv-properties\nDataSource Property<devenv-properties>"}