psphanindrakuma
Tera Guru

 Installation procedure.

1. Install VS code extension – [ sn-scriptsync]. 

find_real_file.png 

 

 

2. Create a new folder with the name “sn-scriptsync" under Documents directory.

     find_real_file.png 

 

 

3. Install “ServiceNow Utils” – browser extension in Chrome or Firefox browser.

find_real_file.png 

 

4. Enable ServiceNow Utils in the browser.

 

 find_real_file.png

 

5. Click on Open ScriptSync Helper Tab. It will create a web socket connection between your instance and the VS code.

     find_real_file.png

 

6. Click on the new button provided by browser extension which opens code in vscode. After saving code in VS code editor, WebSocket connection updates the code in an instance. And it will be captured in the update set.

 

    find_real_file.png

     My Articles:
1. Useful Number methods in JavaScript
2. Service-Now Client Script APIs

 

Comments
yesubabu Jonnal
Tera Contributor

how to install in Google Chrome or Firefox browser

psphanindrakuma
Tera Guru

Install SN Utils browser extension i the chrome and Firefox browsers 

kundanthaku
ServiceNow Employee

Hi All,

Can you try the official ServiceNow Vs Code Extension.
https://marketplace.visualstudio.com/items?itemName=ServiceNow.now-vscode

MichelSamia
Tera Expert

This video helped me to set up and use that extension: https://www.youtube.com/watch?v=vCQ-PtQYnGU

MichelSamia
Tera Expert

@kundanthaku, when trying the official one, I had trouble to set it up. I didn't know where to find the client ID and client secret for our OIDC authentication. This one is pretty simple to use, doesn't require you to set up credentials at all.

Not applicable

@kundanthaku  You can go with basic auth with user name (email id) and the password for your profile

kundanthaku
ServiceNow Employee
pawel_st -then-
Giga Guru

I am using 1.7.0 version with OAUTH+MFA and it works fine for all but Script Includes.

I have scoped app and use ESLINT on VSCODE but it is annoying that file sync fails calling SN for script includes.

Does anyone know how to trace extension; to figure out why just for script include it is not calling metadata update, even if diff works perfectly fine?

pawel_stthen_0-1770991100204.png

this is not really verbose...

Should I ask Support or it is rather Community business?

kundanthaku
ServiceNow Employee

Hi @pawel_st -then- 

Can you please explain the issue to me in detail? Are you getting any errors?

 

Sandhya_pandey
Mega Explorer

This is a solid setup! Curious—once the code syncs to the instance via WebSocket, does it automatically get captured in whichever update set is currently active? Or do we need to manually select the update set before opening the script in VS Code? I would appreciate knowing the precise sequence to prevent inadvertently pushing to the incorrect update set.

kundanthaku
ServiceNow Employee

Screenshot 2026-04-07 at 1.12.23 PM.png


Hi @Sandhya_pandey ,
Please refer to the screenshot above. I have highlighted the section that shows the active Update Set, which tracks all your updates from Extension.

You can change it by clicking on the Update Set name.

devjorginho
Mega Contributor

ty ! very useful 😄

Version history
Last update:
‎09-23-2023 03:24 AM
Updated by:
Contributors