Create or convert an application with the ServiceNow SDK
Create an application or convert an existing application to develop in source code with the ServiceNow SDK.
Antes de Iniciar
Install or upgrade the ServiceNow SDK using npm. For more information, see Install the ServiceNow SDK in an application or Upgrade the ServiceNow SDK.
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
Por Que e Quando Desempenhar Esta Tarefa
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.
Procedimento
Resultado
An application with the default application structure is available locally. For information about the application structure, see the Application structure section of the Building applications in source code topic.
If you installed the application successfully, it’s available on the instance. For more information about installing applications, see Build and installdeploy an application with the ServiceNow SDK.
If the application is built and installed to the instance, the CLI returns the URL to the application, such as https://myinstance.service-now.com/sys_app.do?sys_id=<sysID>. If you chose not to build and register the application on the instance during creation, the application isn’t installed to the instance until you do so. For more information, see Build and installdeploy an application with the ServiceNow SDK.
O que Fazer Depois
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.