Is there a way to completely stop deactivated catalog items from being used?

Community Alums
Not applicable

I've got a somewhat interesting issue that has come up.

We have retired (deactivated) many catalog items and users cannot access them from the portal or service catalog which is as expected. The issue we are having is that some people bookmark a catalog item on their browser (have the URL to the item) and if they follow their bookmark they are still able to access the catalog item and submit it.

Is there a way so that when an item is deactivated it is not able to be used at all? Also I am looking for a way to possibly create a pop up or message that lets the user know the item has been deactivated in addition to them not being able to submit or use it whatsoever.

Any ideas would be greatly appreciated! Thanks!

12 REPLIES 12

SanjivMeher
Kilo Patron
Kilo Patron

Hi Kris,



You can add roles to this catalog item. So if you put admin as role in this catalog item, user will no longer be allowed to use it.


Adding a pop-up, i am not sure, if is feasible. You may try to use an onLoad script with confirm pop-up.



Please mark this response as correct or helpful if it assisted you with your question.

Community Alums
Not applicable

Sanjiv,



Thanks for the reply, I had thought about the roles for the items, but the issue is there are over 400+ that have been retired so didn't know if there was a script or something I could use to not allow the items and kind of catch all of them and any further ones that may come up in the future.


shouvik
ServiceNow Employee
ServiceNow Employee

There is a property Enable removal of inactive catalog items from cart (glide.sc.remove_inactive_cat_items_from_cart) which would allow remove the inactive items from the   cart if they are added before the items are inactivated.



From bookmark we dont allow opening the Item if it is inactivated. Which version are you using?



Thanks


Shouvik


Community Alums
Not applicable

Shouvik,



Thanks for the reply, I am not sure this item would work for me though, as the users have bookmarked the item on their browser before it was inactive so they have a direct link to the catalog item. From there they are still able to submit it which is causing issues because no one is monitoring these items any longer. I need some way of just having an error message be displayed saying something like "This item has been deactivated and is no longer available to use" and then not letting the user do anything else.