Skip to content

Commit edaab25

Browse files
authored
Create script.js
1 parent 69c730d commit edaab25

File tree

1 file changed

+20
-0
lines changed
  • Server-Side Components/Background Scripts/IRE Simulation

1 file changed

+20
-0
lines changed
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)