Identification and Reconciliation(IRE) implementation on scheduled Jobs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2023 07:43 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2023 09:41 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2023 04:59 AM
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.