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 . 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);