How to provide a hyperlink on catalog item form that links to another catalog item form

bookman1502
Giga Expert

Hi,

My organization has a catalog item which allows users to grant, modify, or revoke user access to various systems. However, problematic things happen with approvals when they choose to revoke. We also have a catalog item for revoke access which doesn't cause this problem, and I was wondering if there was a way to provide a hyperlink on the grant, modify, or revoke access catalog item form to the revoke access catalog item form so as to redirect everyone to the latter. I know it may seem like it would make the most sense just to get rid of revoke access on the grant/modify catalog item but it's been this way for a long time so I think from a user experience perspective it would be best to try and provide a link. I've searched through the wiki and while I have found this regarding how ServiceNow URLs work I haven't found anything that seems like it would allow me to create a hyperlink in this manner, such as a service catalog variable type for hyperlinks or something. Could someone please help me out here?

Thanks

1 ACCEPTED SOLUTION

Hi Robert,



Thanks for the update. Just replace the instance name with yours and update the link.


https://YOURINSTANCE.service-now.com/com.glideapp.servicecatalog_cat_item_view.do?v=1&sysparm_id=039...



Replace 039c516237b1300054b6a3549dbe5dfc with the sys_id of the catalog item


View solution in original post

13 REPLIES 13

Uncle Rob
Kilo Patron

You could do a variable of type Macro, make that into a URL, then make it read only.


poyntzj
Kilo Sage

Why not look at using the worklfow from the catalog item that works


open the workflow for the catalog item that does not work


add an if statement so it if is to revoke it calls a new branch


that new branch is a copy of the workflow from the catalog item that works.



Keeps it the same for everyone then


Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Robert,



Please refer the below thread and adjust your solution accordingly.


Hyperlinks in Catalog


Thanks Pradeep. I've modified the jelly code provided in the thread to make it functional and added the URL of the catalog item in the href tag, but the issue is that the URL I used came from going to the "personalize item" page for the item and right clicking at the top and selecting "copy URL". Apparently this doesn't work because the link on the grant/modify form redirects to the "personalize item" form for revoke access rather than the item's form which the end users see. Is there an easy way of getting the URL for the item form page like there is for the personalize item form page?