I want create bi-direction relation between related list
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-05-2025 05:33 AM
I have created custom related list on issue form .For that created m2m table used planned task and issue table.
In issue form related list if i add one record it added to related list and if i open related list record so in that record need to show related record.
In above screenshot I have added 'Employee Management' added to '
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-05-2025 05:43 AM
you can create defined relationship as this
Applies to Table - Issues
Queries from table - sn_grc_issue
Script:
current.addQuery('plannedTaskField', parent.sys_id);
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-05-2025 07:27 AM
@Ankur Bawiskar I have created relationship
still it is not showing directional relation.could you please suggest me.
eg IPT0020004 in related list i added issue IPT0020013 record when i open IPT0020013 in that issue related list should be show IPT0020004 record.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-05-2025 08:12 AM
Logic I already shared, please ensure you use the correct field i.e. u_planned_task
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-05-2025 08:34 AM
@Ankur Bawiskar Thank you for your help I have only one doubt is this best practice to make this bi-direction relation? I have checked all community doc but nothing found related to best practice related things
Thank You.