Redirection from backend platform to Portal

sriramgopal92
Kilo Explorer

I need to redirect users from the back end platform to portal on click of a button. In the sysapproval table, once the user clicks "approve" or "reject", he is taken to the list view of all approvals. Instead of that, the user should be taken to Employee Service Center , or the Service Portal.

I modified the UI action for the button by adding

a)url= 'devabcd.service-now.com/esc'

setRedirectURL (url)

b) url ='?/esc &id= esc_dashboard'

setRedirectURL(url)

c) Added a business rule after approve and reject 

gs.setRedirectURL('url')

 

The closest I could get was, open the ESC inside the backend platform. Attached screenshot

find_real_file.png

 . How to avoid this or how to correctly open the portal once users click approve or reject button?

3 REPLIES 3

Tom O_Neill
ServiceNow Employee
ServiceNow Employee

Can you make the UI Action a client side action? And then for the on-click I have it call the below function and it opens the ESC without the navigation window.

 

function openEsc() {
g_navigation.open('/esc', 'ESC');
}

manasamaniac
Mega Expert

check if you use below code 

url = "./esc";

setRedirectURL (url);

 

Thanks

Manasa

Jonathan72
Tera Contributor

I think it should be action.setRedirectURL(url)