Create and use JavaScript modules in applications in the ServiceNow IDE
Optimize your codebase by defining reusable code blocks with JavaScript modules in the ServiceNow IDE.
Vorbereitungen
Create, convert, or clone an application and add it to your workspace. For more information, see Adding applications in ServiceNow IDE.
Create or clone a scoped application with the ServiceNow IDE. For more information, see Create an application with the ServiceNow IDE or Clone a Git repository with the ServiceNow IDE.
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 in the ServiceNow IDE.