How to get URL suffix of Service Portal in Service Catalog

masateru_tomiok
Kilo Expert

We are using multiple Service Portals.

I want to get the URL suffix of Service Portal (ex: sp) when catalog item is requested from only the Service Portal.
I am trying to get the URL suffix using "onSubmit" client script of Variable Set.

  • How can I judge whether catalog item is requested from Service Portal using client script?
  • Can I get the URL suffix from the Variable Set's client script?
5 REPLIES 5

Rishabh Jha
Mega Guru

I know this thread is quite old, but for anyone still looking for an answer to this, in order to get service portal url suffix in client script, one can simply use - $scope.portal.url_suffix