Displaying problem record in the related list tab of the incident automatically ??if the Problem record exisits ..

roopashree e
Mega Contributor

displaying if an incident has a problem record attached then incident's related list tab called " problem " should display the problem record automatically , please a advice how to achieve this ..awaiting response .

1 ACCEPTED SOLUTION

Hi Roopashree,

Is problem_id field on incident populated with the problem record?

If yes then only the related list will show that problem record; if not then it won't show since query is based on that field

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

15 REPLIES 15

while writing query you mentioned sys_id, can you please explain what exactly sys_id role in achieving this requirement

roopashree e
Mega Contributor

Hi Ankur  , 

 

sorry , it will create the related list tab but it will not display the associated problem record , kindly relook at your script  .. and let me know how we can achieve this ..

Hi Roopashree,

yes we are creating relationship and then adding it as related list for incident form

check screenshot below the incident has problem as PRB0040003 and the same is shown in the related list

Ideally there is a problem_id field on incident form which stores the problem record; if you can use that for display then no need to show related list

since the related list will only have 1 record always

find_real_file.png

find_real_file.png

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

roopashree e
Mega Contributor

I went as per your guidelines .. inspite of problem record existing it dint display in the related list .. looks the script is not working .. kindly check and let me know .. 

Hi Roopashree,

Is problem_id field on incident populated with the problem record?

If yes then only the related list will show that problem record; if not then it won't show since query is based on that field

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader