Create a project in VS Code
- UpdatedJan 30, 2025
- 2 minutes to read
- Yokohama
- Building applications
ServiceNow applications are contained within a project in the VS Code IDE. Import an application from your ServiceNow instance with the help of ServiceNow Extensions for VS Code.
Before you begin
Procedure
-
Click Create Projectin the status bar on the bottom of
the VS Code IDE.
Figure 1. Create Project You can also use a keyboard shortcut, Control+Shift+P on Windows or Command+Shift+P on MacOS, to open the command palette and choose Now: Create Now Project from the list.
The Create Project wizard opens. -
Enter the URL of the ServiceNow instance and press Enter
to confirm.
Include the complete URL for your instance, for example, https://example.service-now.com
-
When prompted, select the Authentication type.
Figure 2. Authentication type - To create a basic application, choose Basic and fill in the following fields, when prompted.
Table 1. Basic application Field Description User Name Enter the User name of the ServiceNow instance URL. Password Enter the password of the ServiceNow instance URL. Note: The user account being used for authenticating must not contain the admin role. - To create an OAuth application, choose OAuth
application and fill in the following fields, when prompted.
Table 2. OAuth application User Name Enter the Username of the ServiceNow instance URL. Password Enter the password of the ServiceNow instance URL. Client ID Client ID is automatically generated by ServiceNow OAuth server. Client secret TClient secret for the OAuth application.
- To create a basic application, choose Basic and fill in the following fields, when prompted.
-
Select the project type when prompted.Note: You can enable the Packages and Plugins project types by enabling them from the Settings. Navigate to Preferences > Settings > Extensions > Now > Project Settings to enable them.
- Select Import Existing.