Skip to content

Commit c56ba8c

Browse files
authored
Background scrip to Test IRE Simulation (#2379)
* Create script.js * Create readme.md
1 parent 51f80f5 commit c56ba8c

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Background script to test IRE simulation for specific CI .
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
Add class name and provide name and short description.
3+
4+
*/
5+
6+
var payload = {
7+
"items": [
8+
{
9+
"className": "cmdb_ci_linux_server",
10+
"values": {
11+
"name": "Test_Linux_001",
12+
"short_description": "My New Description"
13+
}
14+
}
15+
]
16+
};
17+
var jsonUtil = new JSON();
18+
var input = jsonUtil.encode(payload);
19+
var output = SNC.IdentificationEngineScriptableApi.createOrUpdateCI('ServiceNow', input);
20+
gs.print(output);

0 commit comments

Comments
 (0)