Convert an application with the ServiceNow SDK
Convert an existing application to support development in source code with the ServiceNow SDK.
Avant de commencer
Use the ServiceNow SDK to authenticate to a ServiceNow instance. For more information, see Authenticating to a ServiceNow instance with the ServiceNow SDK.
Role required: admin
Pourquoi et quand exécuter cette tâche
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. The application isn't changed on the instance until you build and install it on the instance.
This procedure uses the ServiceNow SDK command-line interface (CLI). From a command-line tool, enter now-sdk --help to get information about the available commands and global options. To get additional information about a
command and its parameters, enter the command and --help or -h. For example, now-sdk auth --help. For more information about the CLI, see ServiceNow SDK CLI.
Procédure
Résultats
The converted application is added to your local directory with the necessary files and directories to support development in source code. If you installed the application successfully, it’s updated on the instance. For more information about installing applications, see Build and install an application with the ServiceNow SDK. 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.
New application metadata added after converting an application is automatically transformed into source code in the src/fluent/generated directory when you use the transform command. If
metadata exists in the local application as both XML and source code, the XML version takes precedence when installed on the instance.
Que faire ensuite
In Visual Studio Code, start developing your application in source code with ServiceNow Fluent, writing custom JavaScript modules, or adding third-party libraries. For more information, see Developing applications with the ServiceNow SDK.