- Install NodeJS – https://youtu.be/b9iuvDkBUwc
- Install CLI (VS Code) – https://code.visualstudio.com/download
- Download and install the ServiceNow CLI from ServiceNow Store – https://github.com/serviceNow/servicenow-cli
- Install the ServiceNow CLI application on your instance.
snc extension add --name ui-component //Install the ui-component
npm install -g npm@6.13.4 //If needed to downgrade npm version
snc configure profile set //Create Default connection profile
snc configure profile set -–profile <replace-with-your-profile-name> //Create Custom Profile
sys_properties.list - glide.appcreator.company.code //Get Company Code
snc ui-component project --name @myorg/movie-quotes //Setup Project or Application
snc ui-component project --profile <your-named-connection-profile> --name @myorg/movie-quotes --description 'A web component that prints movie quotes.' //Setup Project or Application for custom profile
npm install //Load Files
snc ui-component develop //Run the component locally
snc ui-component deploy //Deploy to servicenow instance
snc ui-component deploy --f
snc ui-component deploy --strict-validate-now-ui-json false
npm install bootstrap // Install Boostrap
@import '~bootstrap/scss/bootstrap'; // add this to style.scss file
snc extension add --name ui-component //Install the ui-component
npm install -g npm@6.13.4 //If needed to downgrade npm version
snc configure profile set //Create Default connection profile
snc configure profile set -–profile <replace-with-your-profile-name> //Create Custom Profile
sys_properties.list - glide.appcreator.company.code //Get Company Code
snc ui-component project --name @myorg/movie-quotes //Setup Project or Application
snc ui-component project --profile <your-named-connection-profile> --name @myorg/movie-quotes --description 'A web component that prints movie quotes.' //Setup Project or Application for custom profile
npm install //Load Files
snc ui-component develop //Run the component locally
snc ui-component deploy //Deploy to servicenow instance
snc ui-component deploy --f
snc ui-component deploy --strict-validate-now-ui-json false
npm install bootstrap // Install Boostrap
@import '~bootstrap/scss/bootstrap'; // add this to style.scss file
snc extension add --name ui-component //Install the ui-component npm install -g npm@6.13.4 //If needed to downgrade npm version snc configure profile set //Create Default connection profile snc configure profile set -–profile <replace-with-your-profile-name> //Create Custom Profile sys_properties.list - glide.appcreator.company.code //Get Company Code snc ui-component project --name @myorg/movie-quotes //Setup Project or Application snc ui-component project --profile <your-named-connection-profile> --name @myorg/movie-quotes --description 'A web component that prints movie quotes.' //Setup Project or Application for custom profile npm install //Load Files snc ui-component develop //Run the component locally snc ui-component deploy //Deploy to servicenow instance snc ui-component deploy --f snc ui-component deploy --strict-validate-now-ui-json false npm install bootstrap // Install Boostrap @import '~bootstrap/scss/bootstrap'; // add this to style.scss file
Have Fun !
No responses yet