Approval tab (related list) in scoped app

MichaelW
Tera Contributor

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

 

find_real_file.png

26 REPLIES 26

Ankur Bawiskar
Tera Patron
Tera Patron

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

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi Ankur,

Ok so can be done which is good.  Just need to work out how to do the above.

Thanks

Hi,

example

Ensure you are in scoped app

Create new relationships

find_real_file.png

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);

find_real_file.png

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

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.