- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I imported 35 new UPS assets into alm_hardware. The corresponding UPS CIs were all created with Operational Status = Operational. The desired Operational Status is Received.
When I performed this task six months ago, the UPS CIs were created with the correct Operational Status of Received. I don't know what changed, nor how to ensure that subsequent imports will reflect the correct Operational Status.
The import spreadsheet contains these fields:
- Model Category
- Serial Number
- Stockroom
- Owned By
- Location
- Manufacturer
- Model
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @Bobby Campbell .
The change in the default Operational Status from "Received" to "Operational" is likely caused by a modification in an out-of-the-box ServiceNow Business Rule or a change in the CI Class Manager settings. The platform synchronizes the asset's state/substate with the CI's status fields. The synchronization logic is typically controlled by the "Sync Ops Status for CMDB CI" business rule on the cmdb_ci table
You have two primary options to ensure the correct "Received" status for future imports:
- Add Column: Add a column named "Operational Status" (or something similar) to your spreadsheet.
- Set Value: Enter Received (or the corresponding numerical value, typically 1 or 2 depending on your instance's configuration) for all assets.
- Map Field: During your import process's Transform Map, ensure you map this new column from your import set table to the operational_status field on the alm_hardware (or related CMDB CI) table.
- Navigate to System Import Sets > Transform Maps.
- Open the Transform Map used for this UPS import.
- Go to the Transform Scripts related list and click New.
- Set the When field to onBefore.
- In the Script field, add the following code:javascript
// Set the operational status to 'Received' target.operational_status = 2;
If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!
Thanks, GP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @Bobby Campbell .
The change in the default Operational Status from "Received" to "Operational" is likely caused by a modification in an out-of-the-box ServiceNow Business Rule or a change in the CI Class Manager settings. The platform synchronizes the asset's state/substate with the CI's status fields. The synchronization logic is typically controlled by the "Sync Ops Status for CMDB CI" business rule on the cmdb_ci table
You have two primary options to ensure the correct "Received" status for future imports:
- Add Column: Add a column named "Operational Status" (or something similar) to your spreadsheet.
- Set Value: Enter Received (or the corresponding numerical value, typically 1 or 2 depending on your instance's configuration) for all assets.
- Map Field: During your import process's Transform Map, ensure you map this new column from your import set table to the operational_status field on the alm_hardware (or related CMDB CI) table.
- Navigate to System Import Sets > Transform Maps.
- Open the Transform Map used for this UPS import.
- Go to the Transform Scripts related list and click New.
- Set the When field to onBefore.
- In the Script field, add the following code:javascript
// Set the operational status to 'Received' target.operational_status = 2;
If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!
Thanks, GP
