Showing Relationships in Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2018 02:40 AM
We are trying to view the related lists generated by relationship records on the form on the service portal. It appears that OOTB only links to related lists that are specific record references are shown.
We managed to configure a related list widget to show the lists but no filters are passed through for the relationship type lists. Has anyone managed to get this to work?
- Labels:
-
Service Portal

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2018 02:48 AM
Hi Ali,
Please refer the link below.
https://serviceportal.io/downloads/related-list-widget/
Hope this helps.
Regards
Ujjawal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2018 03:05 AM
Hi Ujjawal
I've tried this and it gives us the lists, and the counts appear correct, but in the server script it passes the following information:
var params = {
table: list.table,
filter: list.field+"="+data.sys_id;,
view: 'sp',
title: list.label
};
This results in an undefined filter rather than what should be provided by the relationship.
Thanks,
Ali
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-26-2018 03:51 AM
Posting this in case anybody else has this issue. In order to get relationships rendering in the related list widget found here (https://serviceportal.io/downloads/related-list-widget/) replace the following lines in the server script:
var params = {
table: list.table,
filter: list.field+"="+data.sys_id,
view: 'sp',
title: list.label
};
with:
var params = {};
if(list.type == 'REL'){
params = {
table: list.table,
relationship_id: list.relationship_id,
apply_to: list.apply_to,
apply_to_sys_id: list.apply_to_sys_id,
view: 'sp',
title: list.label
};
}
else{
params = {
table: list.table,
filter: list.field+"="+data.sys_id,
view: 'sp',
title: list.label
};
}