Identification and Reconciliation(IRE) implementation on scheduled Jobs

SN_Learn
Kilo Patron
Kilo Patron

Hi All,

 

I have created a scheduled Job that is fetching data from a third party using Rest Message and creating or updating records in a 'cmdb_ci_computer' table.


Could anyone please guide how can I implement IRE in the scheduled job? Thanks.

#cmdb #integration #IRE

----------------------------------------------------------------
Mark this as Helpful / Accept the Solution if this helps.
2 REPLIES 2

Maik Skoddow
Tera Patron
Tera Patron

Hi

the following article explains how to trigger the IRE via script: https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0750383 

Maik

Hi Maik, thanks for the response.

 

I have tried the above and able to implement on some fields but it is not working for glide date field on the form.
Below is the code that I have tried:

var payload = {
                "items": [{
                    "className": "cmdb_ci_comp",
                    "values": {
                        "name": sn_string,
                        "u_link": ans,
                        "serial_number": sn_string,

                        "u_expiracy_date": ExpDate.toString(),
                        "operational_status": "1",
                        "category": "ServiceNow",
			       "u_date_validated" : '18/09/2023'

                    }
                }]
            };

 

var gdt = new GlideDate();
var ExpDate = gdt.getByFormat("dd/MM/yyyy");

I have formatted the date as well and checked in the logs:
It is in the format dd/MM/yyyy which is same as the glide date field format on the form. But it is not getting populated/updated. I have also converted it toString() but still no luck.

Could you please guide what are the other scenarios that I could check for? Thank you.

----------------------------------------------------------------
Mark this as Helpful / Accept the Solution if this helps.