How to create custom related lists in incident form

SK41
Giga Guru

Hi,

I have a requirement where i need to create custom related lists called " Interaction" in incident form and show all the related interaction with that incident.

How can i achieve that ? Please help.

Thanks!

9 REPLIES 9

umaaggarwal
Giga Guru
Giga Guru

Hi SK,

 

You can do this by going to System Definitions> Relationships. 

Select applies to table as incident and Query from table as interaction tables

Put the code based on your requirement

Once done go to incident form and configure related list and add the one you just created

 

Attached is the screen shot of one example relation ship I created to add all incidents created withing 6 hours of parent incident with same CI.

 

Feel free to reach out for any questions 

 

Thanks!

find_real_file.png

how will i fetch the associated interaction in related list in incident?

 

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

Is there any field on interaction table which holds incident?

If yes then no need to create custom relationship; you can directly add the related list in your view

Regards
Ankur

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

There is a related link in interaction form, onclick of which the incident is open and i have  to show that related interaction in incident form.