- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2024 03:09 AM
In the change request there is one column in related lists "Affected CI's" we need to populate more than one CI in the change request without adding it manually.
Solved! Go to Solution.
- 1,387 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2024 03:39 AM
Hi @Anantha27
Below posts could be helpful :
Thanks and Regards
Amit Verma
Please mark this response as correct and helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2024 03:47 AM
Hi @Anantha27
The logic of same work with UI action - Impacted Services / CI. If you add a Service in Impacted Services Related Tab, it will pull the associated relation of CI and add in affected CI. But if you want to just add a CI in Affected CI tab, then you need to add manually only.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2024 02:21 AM
Hi @Anantha27 !
Please go through the below link
Thanks, and Regards
Ramesh Shankarolla
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2024 08:30 AM
Hi @Anantha27 ,
Kindly go through the below links:
Solved: Re: Autopopulate all affected cis in related list ... - ServiceNow Community
Solved: How to create a Standard Change template with mult... - ServiceNow Community
Thanks, and Regards
Vishaal
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2024 09:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2024 09:23 AM
Hi @Anantha27
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2024 02:21 AM
Hi @Anantha27 !
Please go through the below link
Thanks, and Regards
Ramesh Shankarolla
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2024 08:30 AM
Hi @Anantha27 ,
Kindly go through the below links:
Solved: Re: Autopopulate all affected cis in related list ... - ServiceNow Community
Solved: How to create a Standard Change template with mult... - ServiceNow Community
Thanks, and Regards
Vishaal
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2024 09:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2024 09:23 AM
Hi @Anantha27
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2024 09:47 AM
- To populate more than one Configuration Item (CI) in the “Affected CI’s” related list of a Change Request in ServiceNow without adding them manually, you can use a script to automate this process. Here’s a basic example of how you can achieve this using a business rule or a script include:
- Create a Business Rule:
- Navigate to System Definition > Business Rules.
- Click on New to create a new business rule.
- Set the Table to Change Request (change_request).
- Set the When field to before or after depending on when you want the script to run.
- In the Advanced tab, add the following script:
(function executeRule(current, previous /*null when async*/) {
// Array of CI sys_ids to be added
var ciArray = ['sys_id1', 'sys_id2', 'sys_id3']; // Replace with actual sys_ids of CIsciArray.forEach(function(ciSysId) {
var gr = new GlideRecord('task_ci');
gr.initialize();
gr.ci_item = ciSysId;
gr.task = current.sys_id;
gr.insert();
});
})(current, previous);