Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
[CMDB IRE] How to run the CI identification on demand using the payload - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • [CMDB IRE] How to run the CI identification on demand using the payload
KB0750383

[CMDB IRE] How to run the CI identification on demand using the payload


13403 Views Last updated : Apr 8, 2025 public Copy Permalink English (Original)
  • English (Original)
  • Japanese
KB Summary by Now Assist

Issue

While debugging the CI IRE, we may need to run the CI Identification and reconciliation using the payload. This article explains how you can run these.

Procedure

  • Assume that you have the CI payload that is being sent to the CI IRE(or createOrUpdateCI). If you don't know how to get the CI payload which is being sent to the IRE, please see the KB "How to check the data/payload being sent to IRE and check the issues with the payload" to retrieve the payload.
  • Now, we have the payload then either you can use the simulator to simulate the CI identification and reconciliation and/or use the below steps. Please note, if you want to check any issues while committing the DB then use the below steps as this is the way you are making updates to target record.
  • Goto Application Navigator >> System Definition >> Scripts - Background
  • Sample Payload looks as below
    var payload = {
      items: [{
        className:'<<CLASS_NAME>>',
        values: {
          name: '<<CI_NAME>>',
          serial_number:'<<CIs_Serial_NUMBER>>’
        }
      }]
    };
  • Run the below code.
    /* Replace the variable as below:
    YOUR_COPIED_CI_PAYLOAD: This is the payload we copied from step#1 OR your generated payload. 
    YOUR_DATA_SOURCE: Replace this with your intended data source like ServiceNow, SCCM, ImportSet, etc.
    
    */
    
    runCiIdentificationReconciliation();
    
    function runCiIdentificationReconciliation() {
       var payload  = YOUR_COPIED_CI_PAYLOAD;
       var input = new JSON().encode(payload);
       var output = SNC.IdentificationEngineScriptableApi.createOrUpdateCIEnhanced('YOUR_DATA_SOURCE', input,{});
       // If you dont wanted to use the Enhanced IRE engine you can replace the above line with below:
       // var output = SNC.IdentificationEngineScriptableApi.createOrUpdateCI('YOUR_DATA_SOURCE', input);
       gs.print(output);
    }
  • Analyze the outcome using the error codes Identification engine error messages

Release

Geneva and newer

Related Links

  • How to check the data/payload being sent to IRE and check the issues with the payload
  • Identification engine error messages
  • How the CMDB Identification and Reconciliation Engine works when passing a CI (as payload) to the createOrUpdateCi()

The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

Attachments

Attachments

No attachments found

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.