Create and use JavaScript modules in applications with the ServiceNow SDK
Optimize your codebase by defining reusable code blocks with JavaScript modules and the ServiceNow SDK.
Vorbereitungen
Add an application to your local system with the ServiceNow SDK. For more information, see Adding applications with the ServiceNow SDK.
--template parameter to typescript when creating or converting an application. To configure an existing application to
support using TypeScript, see Using TypeScript in JavaScript modules with the ServiceNow SDK.Role required: admin
Warum und wann dieser Vorgang ausgeführt wird
To learn about support for using JavaScript modules in scoped applications, including some limitations, see JavaScript modules and third-party libraries. For general information about the syntax used to create JavaScript modules, see the JavaScript modules page on the MDN Web Docs website.
Prozedur
Nächste Maßnahme
To use third-party libraries in a JavaScript module, see Use third-party libraries in applications with the ServiceNow SDK.
To build your application and add the modules to the EcmaScript Module [sys_module] table, see Build and installdeploy an application with the ServiceNow SDK.