Convert an application with the ServiceNow IDE
Convert an existing application to support development in source code with the ServiceNow IDE.
Antes de Iniciar
Create a workspace for your applications. For more information, see Create a workspace in the ServiceNow IDE.
Role required: admin
Por Que e Quando Desempenhar Esta Tarefa
Existing applications that weren't created with the ServiceNow IDE or ServiceNow SDK must be converted to support development in source code. Converting an application adds the necessary files and directories for developing it in source code. You can choose whether to convert existing application metadata into ServiceNow Fluent code.
Procedimento
Resultado
The converted application is added to your workspace with the necessary files and directories to support development in source code. After installing a converted application, the Package JSON field of the custom application record [sys_app] contains the path to the package.json file for the application.
Access-Control-Allow-Origin header.
- For the ServiceNow IDE to install the required dependencies in an application, the public npm registry must respond with the HTTP
Access-Control-Allow-Originheader. - If you encounter other issues after converting an application, you can run the Fluent: Reset ApplicationSynchrotron: Reset Application command to remove source files in the application (not application metadata) and re-convert the application.
O que Fazer Depois
From your Git provider, create a dedicated Git repository for the application. Initialize a local Git repository for your application and push it to the remote repository. For more information, see Initialize a Git repository with the ServiceNow IDE.
In the ServiceNow IDE, start developing your application in source code with ServiceNow Fluent, writing custom JavaScript modules, or adding third-party libraries.