The Zurich release has arrived! Interested in new features and functionalities? Click here for more

ServiceNow Custom Components

Dilpreet Kaur
Kilo Explorer

I am trying to create a custom UI component in ServiceNow. Setting up project using below command

snc ui-component project [--name name_of_app --description 'application description' --scope scope --offline]

But it throws me below error - Error: unknown flag: --description

If I remove all non-mandatory values and just execute

snc ui-component project [--name name_of_app]

It still throws error that - unknown command "ui-component" for "snc"

Also, while doing 'snc configure profile refresh' or 'snc configure profile set', it saves profile but also gives warning/error saying - This instance does not support dynamic commands. Functionality will be limited.

Please confirm how can I overcome this error and setup custom UI component project. I am following below link https://docs.servicenow.com/bundle/sandiego-application-development/page/build/components/task/setup...

2 REPLIES 2

Community Alums
Not applicable

Use below syntax, (removed square brackets)

snc ui-component project --name name_of_app --description 'application description' --scope scope

vinayvermani
Giga Contributor

Try running this  command first to install ui-component. This  should  fix it.

 

snc extension add --name ui-component