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.

How do we redirect from the Mobile application with a URL?

Vinay Kukreja
Tera Contributor

I have a requirement to redirect the agent on click of a function to the portal.


I tried using the "action.setRedirectURL( 'https://dev*****.service-now.com/sp');" in the action item of a function , but it throws an blank error on the applet. 

Is there any other way to achieve this?


Thank you in advance,

Vinay Kukreja

2 REPLIES 2

Ivan Betev
Mega Sage
Mega Sage

Hi Vinay,

have you tried this?

https://docs.servicenow.com/bundle/sandiego-mobile/page/administer/tablet-mobile-ui/task/sg-configure-url-screen.html

To redirect to the portal you can use mobile web screen with the /mesp links like "https://instance.service-now.com/mesp?id=sc_home" for example.

Regards, Ivan

Hi Ivan,

Thanks for the quick and informative response.

Based on my instance version, I'm to create to an Applet with the URL template but I don't think that would solve my problem as I have some functionality which needs to be implemented on the script before redirection to the portal.

Regards,
Vinay Kukreja