How to create custom related lists in incident form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2022 04:32 AM
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!
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2022 04:39 AM
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2022 04:53 AM
how will i fetch the associated interaction in related list in incident?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2022 04:42 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2022 04:52 AM
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.