|
| 1 | +# Open Same Record in Another Instance (Browser Bookmarklet) |
| 2 | + |
| 3 | +## Description |
| 4 | +This bookmarklet allows ServiceNow developers, admins, or QA testers to **quickly open the same record in another instance** (e.g., DEV → TEST → UAT → PROD) without manually searching for the record or typing the URL. |
| 5 | + |
| 6 | +It is especially useful for: |
| 7 | +- Comparing records across environments |
| 8 | +- Testing configuration changes |
| 9 | +- Debugging workflows or UI policies across instances |
| 10 | + |
| 11 | +Instead of typing the target instance every time, it provides **clickable buttons** for your predefined instances. |
| 12 | + |
| 13 | +--- |
| 14 | + |
| 15 | +## Features |
| 16 | +- Detects current instance automatically |
| 17 | +- Opens the same record in a **new tab** |
| 18 | +- Pop-up overlay with buttons for predefined target instances |
| 19 | +- Toggleable: overlay disappears after selecting or closing |
| 20 | +- Fully client-side — works on any ServiceNow record page |
| 21 | + |
| 22 | +--- |
| 23 | + |
| 24 | +## How to use |
| 25 | + |
| 26 | +1. Create a new bookmark in your browser. |
| 27 | +2. Name it: `Open in Another Instance` |
| 28 | +3. In the URL field, paste the bookmarklet code present in [Open Record in Another Instance](./Open%20record%20in%20another%20instance/Open%20record%20in%20another%20instance.js) |
| 29 | +4. **Important** In the script, update the instance names with your instances. |
| 30 | + For example purpose ["dev12345","test12345","uat12345","prod12345"] are added in the code. |
| 31 | +5. Now open any record in any ServiceNow instance and click on the bookmark and select the instance to open. |
| 32 | + |
| 33 | +Note : Please be noted that this will work for all the ServiceNow instances with URL like https://xxxx.service-now.com |
| 34 | +For custom URLs, you need to tweak the code slightly as required. |
| 35 | + |
| 36 | +SCreenshots: |
| 37 | +<img width="1900" height="534" alt="image" src="https://github.com/user-attachments/assets/03d0ae55-c2fb-48bc-bffc-a6061be79b16" /> |
| 38 | + |
0 commit comments