How to route non-logged in user to catalog item in service portal using catalog item link
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2024 02:51 AM
Hey all,
I am trying to achieve that if unauthenticated/non-logged in user tries to use a link to view a catalog item in service portal the user should be able to view it but to order user has to login.
Currently it leads to the login page. I tried making the index page public from https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0748640. But this doesn't work as well.
Any idea on how can this be achieved
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2024 03:03 AM
Everything a non logged in user accesses must be public. This includes the page where the catalog item is shown and the widget used to display the catalog item. You could customize the widget to be public, but you'd also need to modify it so that the buttons are only shown to logged in users, so that the guest user can't submit it.
So for example if you check the portal for the catalog item you're trying to view you can probably see the page in the url as something like "id=cat_item_page" cat_item_page would be the name of the page that needs to be public.
Of course if your guest user is accessing the portal otherways as well, then the landing page etc need to be public as well.
Then to display data the widgets on the page must also be public. OOB widget "widget-sc-cat-item-v2" is an option, but you might also already have a customized widget in use and you can check those on the page or by CTRL + right clicking on the widget area.