How to create a tiny URL for service Portal?

Yash31
Tera Contributor

I want to create a short URL for my service portal.

Like: https://myportal

Instead of : https://devXXXXX.service-now.com/sp

so if user enters https://myportal he should get re-directed to portal home page. Is there any way?

4 REPLIES 4

sachin_namjoshi
Kilo Patron
Kilo Patron

You will have to do this with Processors (System Definition > Processors).

 

 

 

Create a new Processor of type Script, and put the shortened URL in the "Path" field.   Then I put the following code in the below SAmple script:

 

 

 

(function process(g_request, g_response, g_processor) {

 

g_processor.redirect('com.glideapp.servicecatalog_cat_item_view.do?v=1&sysparm_id=d38771f4db10c740a47ffb051d961959&sysparm_link_parent=b00565b8dbdc8740a47ffb051d961977&sysparm_catalog=e0d08b13c3330100c8b837659bba8fb4&sysparm_catalog_view=catalog_default');

 

 

 

})(g_request, g_response, g_processor);

 

 

 

Regards,

Sachin

I tried this, but does not work. Is there anything else required to be configured?

Path: https://myportal

Script is like:

(function process(g_request, g_response, g_processor) {

g_processor.redirect("devxxxx.service-now.com/sp?sysparm_stack=no");

})(g_request, g_response, g_processor);

Pranav Bhagat
Kilo Sage

Following links should be helpful:

 

Constructing Tiny URLs

 

Enable tiny URL support

 

Regards

Pranav

DrewW
Mega Sage
Mega Sage

You need to do this with either a host file, DNS entry or proxy server.

This may help
https://docs.servicenow.com/bundle/paris-platform-administration/page/integrate/authentication/task/configure-custom-url.html