We need to stop updating the computer records when the state is in retired state
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2025 06:51 AM
HI Community,
I have a requirement, "Stop updating any attributes for the computers in disabled state to in retired OU"
We need to stop updating the computer records when the state is in retired state... we are using a robust transform map and the data is coming from AD so when the computers are in retired state then that particular records should not update / map.
Please let me know how we can write a condition for this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2025 03:59 AM
you can use onBefore transform script and check the target CI is retired or not.
If yes then ignore the row
(function runTransformScript(source, map, log, target /*undefined onStart*/ ) {
// Add your code here
if (target.operational_status.toString() == '6') {
ignore = true;
}
})(source, map, log, target);
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2025 05:50 AM
Hope you are doing good.
Did my reply answer your question?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader