Changes done on list view should affect to things related to the record

Arjun Reddy Yer
Mega Sage

Required help @Vasantharajan N @Ankur Bawiskar @Voona Rohila @WillieW 

 

When changes are done on list view that should reflect to things (attached records) related to the record. 

List View:

 

ArjunReddyYer_0-1765215435759.png

 

Related Records:

In the below mentioned related records Impact & Priority needs to be change when Impact & Priority cahnged on list view

 

ArjunReddyYer_1-1765215599121.png

 

1 ACCEPTED SOLUTION

Add BR Trigger conditions properly something like - impact changes || priority changes

 

Refer sample logic below:

//sample logic
var grST = new GlideRecord('child table') // childtablename
grST.addQuery('parent',current.sys_id); // add your related list condition, added parent as example.
grST.query();
while(grST.next())
{
grST.priority = current.priority // map directly if backend values are same else do an if check and map it.
grST.impact = current.impact //map directly if backend values are same else do an if check and map it.
grST.update();

]

 

There are so many similar ootb functionalities( Incident to Incident task, Change to Change Task), you can take a look in your instance.


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

View solution in original post

7 REPLIES 7

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Arjun Reddy Yer 

You need to refresh the related list once you make the changes in the list view, or reload the page again.”

*************************************************************************************************************
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/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

The thing is once I done any changes on the list view (impact & priority) for the parent record (changes done on list view) then the attached records (impact & priority) also needs to be change.

Voona Rohila
Giga Patron
Giga Patron

Hi @Arjun Reddy Yer 

Write a BR on the parent table which triggers when impact/priority changes and in your BR write a script to update the child records.


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

If possible can you provide the script for Business Rule