How to add Group Approval tab on a custom application record related list.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2025 09:57 PM
Hi,
I am working on a custom application and I want to add Group Approval in the related list of the record. I tried to create a new relationship that "Applies to table" my custom table and "Queries from table" is the Group Approval(sysapproval_group).
Post applying this to my custom record, I am getting all RITM approval records under the group approval tabs.
Why all RITM approvals records are visible here and please help me to fix this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2025 10:11 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2025 10:12 PM
then it means you didn't give correct script and query condition.
share the configuration
If my response helped please mark it correct and close the thread so that it benefits future readers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2025 10:43 PM
Hi Ankur,
I am using below query:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2025 11:05 PM
try this.
var groupApprovalSysId = '';
var gr = new GlideRecord("sysapproval_approver");
gr.addQuery("document_id", parent.sys_id);
gr.addEncodedQuery('groupISNOTEMPTY');
gr.query();
if (gr.next()) {
groupApprovalSysId = gr.group.sys_id;
}
current.addQuery('sys_id', groupApprovalSysId);
If my response helped please mark it correct and close the thread so that it benefits future readers.