IT Asset Management
(Cloud)
If an asset or application record exists both in IT Asset Management and
ServiceNow but is then deleted in IT Asset Management, the records are marked for
deletion in ServiceNow during the next export from IT Asset Management. However,
the records are not automatically deleted. To delete the records from ServiceNow, you
need to create a Global business rule and include a script with a condition:
current.state == 'Succeeded'.
To delete records in ServiceNow using a global business rule:
-
In ServiceNow, navigate to System Definition, and click
Business Rule.
The Business Rules page appears.
-
Click New.
-
Do the following.
-
In the Name field, enter a name for the
rule:
-
From the Table field, select
x_fls_flexera_fnms_import_transaction.
-
Ensure that the Application field is set to
Global.
-
Select the Active check box.
-
Select the Advanced check box.
-
On the Advanced tab, enter the following in the
Condition field:
current.state == 'Succeeded'
-
On the Advanced tab, enter the following into
the Script field:
var util = new FNMSUtil();
util.removeIsDeletedRecordsFromTable('cmdb_ci_computer');
util.removeIsDeletedRecordsFromTable('cmdb_ci_vm_instance');
util.removeIsDeletedRecordsFromTable('cmdb_sam_sw_install');
IT Asset Management (Cloud)
Current