{"title":"StartupScript Property","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/properties/devenv-startupscript-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-startupscript-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-startupscript-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 script which is invoked when web page with the control add-in is loaded.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Applies to","slug":"applies-to","at":147,"chars":30},{"level":2,"title":"Property Values","slug":"property-values","at":177,"chars":105},{"level":2,"title":"Remarks","slug":"remarks","at":282,"chars":552},{"level":2,"title":"Example","slug":"example","at":834,"chars":52},{"level":2,"title":"Related information","slug":"related-information","at":886,"chars":94}],"text":"> Version: _Available or changed with runtime version 1.0._\nSpecifies the script which is invoked when web page with the control add-in is loaded.\n## Applies to\n Control Add In\n## Property Values\nA path to a single script file. The default is blank, with no script being specified.\n## Remarks\nThis property is typically JavaScript representing the main body of the control add-in. The script is invoked when the page that hosts the control add-in has loaded and after other scripts referenced by the devenv-scripts-property property have loaded.\nAlthough this property is optional, the control add-in must either specify the StartupScript property or specify one or more scripts.\nThe script is embedded within the extension and must be added to the extension project folder in Visual Studio Code and referenced using a relative path.\n## Example\n```al\nStartupScript = 'js/chart.js';\n```\n## Related information\ndevenv-properties\nControl Add-In Object<../devenv-control-addin-object>"}