- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2023 10:49 AM
I am wanting to use IRE specifically data source priority for updating the cmdb. I am wanting to create a flow to update the cmdb that uses IRE. If I already know the CI I want to update, how can I use the sys_id of the ci to identify the record I want to update. I tried adding sys_id as a identifier, but it is not available to choose as a field.
Thanks,
Erick
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-12-2023 10:57 AM
You can just call with sys_id as a value to the IRE API and you don't need to configure any identifier rules with sys_id for it.
Example:
var payload = {
"items": [
{
"className": "cmdb_ci_linux_server",
"values": {
"short_description" : "Demo payload update",
"sys_id": "61f4dec51bee01101f26cbfc0a4bcbc1"
}
}
]
}
var input = new JSON().encode(payload);
var output = SNC.IdentificationEngineScriptableApi.createOrUpdateCIEnhanced('ServiceNow', input,{});
gs.print(JSON.stringify(JSON.parse(output),null,'\t'));
In order to learn more about the APU use this doc https://docs.servicenow.com/bundle/utah-api-reference/page/app-store/dev_portal/API_reference/Identi...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-12-2023 10:57 AM
You can just call with sys_id as a value to the IRE API and you don't need to configure any identifier rules with sys_id for it.
Example:
var payload = {
"items": [
{
"className": "cmdb_ci_linux_server",
"values": {
"short_description" : "Demo payload update",
"sys_id": "61f4dec51bee01101f26cbfc0a4bcbc1"
}
}
]
}
var input = new JSON().encode(payload);
var output = SNC.IdentificationEngineScriptableApi.createOrUpdateCIEnhanced('ServiceNow', input,{});
gs.print(JSON.stringify(JSON.parse(output),null,'\t'));
In order to learn more about the APU use this doc https://docs.servicenow.com/bundle/utah-api-reference/page/app-store/dev_portal/API_reference/Identi...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2025 11:25 AM