Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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

27 REPLIES 27

I can see it's following the work flow and when approved next approval is generated etc.  Just not showing in the ticket history or in the approval tab.  I'd rather not delete this scoped app and start again extending from task but maybe that's what I need to do.

approval for gets filled when your table extends task

Please extend your table with task and update the script as this

(function refineQuery(current, parent) {

	// Add your code here, such as current.addQuery(field, value);
	current.addEncodedQuery("sysapproval", parent.sys_id);

})(current, parent);

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards
Ankur

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

Hi Ankur,

 

But since the table is created I can't extend now can I, I tried in the tables section and it won't let me.

Hi,

if there is not much data into that table then I would suggest to delete and create new one which extends task

OR

there is workaroud but not recommended

Extends Table AFter Creation

How to extend Task table after Custom table creation?

If my response helped please mark it correct and close the thread so that it benefits future readers.

regards
Ankur

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

I got this to work when I changed used 'addQuery' instead of 'addEncodedQuery'.