How can I check the current Service Portal name?

theBeastMaster
Mega Guru

If I open a record producer in Service Portal. while on the form, is it possible that I can check the name of my current service portal whether it is sp or some other portal?

I am using the producer redirect portal to navigate to a thank you page wherein I had to hardcode portal name but I do not want to do that.

6 REPLIES 6

Mark Roethof
Tera Patron
Tera Patron

Hi there,

For the redirect, how does your URL look like? I mean, asking if you actually need to now if it's /sp, /esc, etc..

For example, something like below already works, without /sp, etc..:
producer.portal_redirect = "?id=kb_view2

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Thanks a ton, removing the portal name works.

But, is it possible at all to know the name of the portal from where I am redirecting to the other page.

Do you want this server side or client side?

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

either ways should be fine.