RITM CI should be duplicate to SCTASK
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
6 hours ago
Hi ,
Good Day.!
Requirement is :
whatever the CI am selecting when submitting in RITM, that same CI should be duplicate / auto reflect to SCTASK also.
Screenshot can't post, sorry.
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hi @NAYEEMURR
Option 1: Business Rule on sc_task
-
Table: sc_task
-
When: before insert
-
Script:
(function executeRule(current, previous /*null when async*/) {
var ritm = current.request_item.getRefRecord();
if (ritm.isValidRecord()) {
// assuming your variable is "configuration_item"
var ci = ritm.variables.configuration_item;
if (ci)
current.cmdb_ci = ci;
}
})(current, previous);
var ritm = current.request_item.getRefRecord();
if (ritm.isValidRecord()) {
// assuming your variable is "configuration_item"
var ci = ritm.variables.configuration_item;
if (ci)
current.cmdb_ci = ci;
}
})(current, previous);
--------------------------------------------------------------------------------------------------------------------------
If you found my response helpful, I would greatly appreciate it if you could mark it as "Accepted Solution" and "Helpful."
Your support not only benefits the community but also encourages me to continue assisting. Thank you so much!
Thanks and Regards
Ravi Gaurav | ServiceNow MVP 2025,2024 | ServiceNow Practice Lead | Solution Architect
CGI
M.Tech in Data Science & AI
YouTube: https://www.youtube.com/@learnservicenowwithravi
LinkedIn: https://www.linkedin.com/in/ravi-gaurav-a67542aa/
If you found my response helpful, I would greatly appreciate it if you could mark it as "Accepted Solution" and "Helpful."
Your support not only benefits the community but also encourages me to continue assisting. Thank you so much!
Thanks and Regards
Ravi Gaurav | ServiceNow MVP 2025,2024 | ServiceNow Practice Lead | Solution Architect
CGI
M.Tech in Data Science & AI
YouTube: https://www.youtube.com/@learnservicenowwithravi
LinkedIn: https://www.linkedin.com/in/ravi-gaurav-a67542aa/