The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Link to My Approvals for a specific task?

Edwin Fuller
Tera Guru

I have a UI action form link that directs users to all of their approvals. I need the link to only direct users to approvals for a specific task table, is this possible?

var url = '/sysapproval_approver_list.do?sysparm_query=approver=' + gs.getUserID();

action.setRedirectURL(url);

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

For a specific task table? You mean something like "My Change Request Approvals"?



Yes, that's possible. Add this part to your query to get just the requested ones in the change_request table.



state=requested^sysapproval.sys_class_name=change_request



Your entire URL would be more like:



var url = '/sysapproval_approver_list.do?sysparm_query=approver=' + gs.getUserID() + '^state=requested^sysapproval.sys_class_name=change_request';


View solution in original post

1 REPLY 1

Chuck Tomasi
Tera Patron

For a specific task table? You mean something like "My Change Request Approvals"?



Yes, that's possible. Add this part to your query to get just the requested ones in the change_request table.



state=requested^sysapproval.sys_class_name=change_request



Your entire URL would be more like:



var url = '/sysapproval_approver_list.do?sysparm_query=approver=' + gs.getUserID() + '^state=requested^sysapproval.sys_class_name=change_request';