URL to direct users right to a catalog item

troy_jensen
Kilo Contributor

Hello,

I need to have our users be able to click on a link in a content page and go directly to a catalog item without the left nav bar. I don't want it framed in our instance.
* URL #1
- With: nav_to.do?uri=
- This one goes directly to the form but has the left nav.

* URL #2
- Without: nav_to.do?uri=
- This one goes directly to the form without the left nav, but if the user isn't already logged in and/or authenticated, it takes them to our instance home page

We utilize SSO and I think that's what tripping me up.

I've reviewed the wiki article: http://wiki.servicenow.com/index.php?title=Navigating_by_URL

It didn't help me, unless I'm missing something.

Anyone have any ideas?

8 REPLIES 8

I second this. We're interested in the same method of linking.


Julian Hoch
ServiceNow Employee
ServiceNow Employee

You might want to have a look at this app extension on share.


manolis_sgouros
Kilo Expert

Hello,



Is a bit late but in case...there is another way to get the url of a catalog item by using the API.



Here is an example:


      var catItem = new GlideRecord('sc_cat_item');


      catItem.get('CAT_ITEM_SYS_ID'); // replace with the sys_id of your catalog item


      var url = GlideappCatalogURLGenerator.getItemBaseURLFromGR(catItem);



Cheers,


Manolis.


amymcd42
Tera Contributor

Did anyone ever solve this?  We are having the same issue. Any help is greatly appreciated.