Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Background script to test IRE simulation for specific CI .
20 changes: 20 additions & 0 deletions Server-Side Components/Background Scripts/IRE Simulation/script.js
Original file line number Diff line number Diff line change
@@ -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);
Loading