From edaab25be497deed3ce7094937d4433699e49f90 Mon Sep 17 00:00:00 2001 From: bharakm Date: Tue, 21 Oct 2025 08:54:17 -0500 Subject: [PATCH 1/2] Create script.js --- .../IRE Simulation/script.js | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Server-Side Components/Background Scripts/IRE Simulation/script.js diff --git a/Server-Side Components/Background Scripts/IRE Simulation/script.js b/Server-Side Components/Background Scripts/IRE Simulation/script.js new file mode 100644 index 0000000000..3bfcf19992 --- /dev/null +++ b/Server-Side Components/Background Scripts/IRE Simulation/script.js @@ -0,0 +1,20 @@ +/* +Add class name and provide name and short description. + +*/ + +var payload = { + "items": [ + { + "className": "cmdb_ci_linux_server", + "values": { + "name": "Test_Linux_001", + "short_description": "My New Description" + } + } + ] +}; +var jsonUtil = new JSON(); +var input = jsonUtil.encode(payload); +var output = SNC.IdentificationEngineScriptableApi.createOrUpdateCI('ServiceNow', input); +gs.print(output); From bc50a433c6802256d144ac40968841b5fbc3bd35 Mon Sep 17 00:00:00 2001 From: bharakm Date: Tue, 21 Oct 2025 08:54:47 -0500 Subject: [PATCH 2/2] Create readme.md --- .../Background Scripts/IRE Simulation/readme.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 Server-Side Components/Background Scripts/IRE Simulation/readme.md diff --git a/Server-Side Components/Background Scripts/IRE Simulation/readme.md b/Server-Side Components/Background Scripts/IRE Simulation/readme.md new file mode 100644 index 0000000000..37273d57e6 --- /dev/null +++ b/Server-Side Components/Background Scripts/IRE Simulation/readme.md @@ -0,0 +1 @@ +Background script to test IRE simulation for specific CI .