Approval tab (related list) in scoped app
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2022 07:33 PM
Hi All,
I have a scoped app that is being worked on and want to be able to have the approvals tab in the related lists. The table doesn't extend the task table.
If I try add the list it's not an option in there. I've tried in scoped app view and also in global and all I get is below. How can I add it?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2022 07:41 PM
Hi,
you can create custom relationship in scoped app for your table and sysapproval_approver table
Then add that on form as related list
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
02-22-2022 07:47 PM
Hi Ankur,
Ok so can be done which is good. Just need to work out how to do the above.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2022 08:04 PM
Hi,
example
Ensure you are in scoped app
Create new relationships
Since you mentioned your table doesn't extend task use this in query
(function refineQuery(current, parent) {
// Add your code here, such as current.addQuery(field, value);
current.addEncodedQuery("document_id", parent.sys_id);
})(current, parent);
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
02-22-2022 08:31 PM
Hi,
Thanks I've tried that and the list shows but no one adds to it when I add them or when the workflow does it.
I'll keep playing.