
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2017 09:18 AM
Is there a way to configure the Service Portal as the landing page when a user hits the https://myinstance.service-now.com URL? I want users to be able to access the Public Service Portal without going through any logins
I have tried playing around with SPEntryPage().getLoginURL() but haven't had any success
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2017 01:33 AM
I managed to get this to work by going back to using SPEntryPage().getLoginURL()
This is the code for getLoginURL() function.
getLoginURL: function() {
var session = gs.getSession();
var nt = session.getProperty("nav_to");
var sPage = session.getProperty("starting_page");
if (nt == "welcome.do")
session.clearProperty("nav_to");
if (!sPage && !nt)
session.putProperty("starting_page", gs.getProperty("glide.login.home"));
if(sPage != "side_door.do?"){
return this.portal;
}
},
Dont forget to update the Sys Property glide.entry.page.script to define your getLoginURL function, you refer to this page to do that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-02-2017 03:32 PM
HI Goran,
I've created the property 'glide.entry.loggedin.page_ess' and gave portal suffix in value field. Also I have other properties (
* PROPERTY VALUE
* glide.entry.page.script new CMSEntryPage().getEntryPage();
* glide.entry.first.page.script new SPEntryPage().getFirstPageURL(); )
Still Specific URL's were taking end user to Specific UI parts.
Where I'm missing? Should I have to call this property somewhere in script include besides just creating it.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2017 01:41 AM
Hello Ayman,
Navigate to the portals -> your sp portal and you can find a login field. If you want a page to show before login, you can create a page in service portals and check public and include that page in login field of the portal record. or you can create a page in portal and specify it as a public and give that URL to users to access.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2017 01:50 AM
Thanks Surya, I was not aware of that.
In this case, I was looking to get the end-user to land on /sp/ instead of a login page, which I achieved using getLoginURL to redirect to /sp/.
Thanks,
Ayman