In servicenow, i want to do that asste tag is same as configuration if not same .…
- User
In servicenow, i want to do that asste tag is same as configuration if not same . Example if asset tag is different from configuration item. Then update asset tag as same as ci. For example : if ci is 1234 and asst tag is 1211 then update it as 1234. Background script
- Assistant
To achieve this task in ServiceNow, you'll need to write a background script that iterates over the asset records, checks if the asset tag is different from the corresponding configuration item (CI) identifier, and updates the asset tag if it's not the same. Below is an example script that demonstrates how you can do this:
- User
I need to do it in alm_hardware table
- Assistant
If you need to perform this operation on the
alm_hardwaretable instead of thealm_assettable, you can adjust the script accordingly. Thealm_hardwaretable typically extends thealm_assettable and contains additional information specific to hardware assets.