- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2022 04:34 AM
When an incident is created from case table [ case table -> Form Menu -> create incident] (refer screenshot 1), then this case is added to Incident form [under Related Lists -> cases] (Refer screenshot2)----- This cases Related List is ootb available in [configure - Related List(slush bucket).
In the same way the incident also should be added under case form Related List. As ootb not available, I configured it in Relationship. what should be the query code to acheive this?(Refer screenshot3).
And also please let me know how to Existing(ootb) Related Lists Configuration and query code as they are not available in Relationship?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2022 04:47 AM
Hi,
update query as this
// ensure you give the correct field from case table which refers incident table
current.addQuery('sys_id', parent.incident);
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
07-22-2022 04:47 AM
Hi,
update query as this
// ensure you give the correct field from case table which refers incident table
current.addQuery('sys_id', parent.incident);
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
07-22-2022 05:13 AM
Edit option and filter condition also should appear as shown(similar to second screenshot)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2022 01:06 AM
But for above query, when a record is created using new button, then that particular record is not getting added under related list of incidents. please let me know what else need to do for that