Best way to provide a dynamic url in the Description field of a catalog item based on a condition?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-18-2018 10:03 AM
When viewing a specific catalog item, in it's Description, I would like to display a link to another catalog item in the service catalog. Since we have configured the Service Portal, some users access the service catalog through the Service Portal while others access it through the full application. My understanding is that the link to a catalog item will be different based on where the user accessed the service catalog, whether within the full application or Service Portal. What is the most effective way to create a dynamic link to point to the correct catalog item whether within the full app or service portal?
Below is a screen shot of a test catalog item from the Service Portal, and I placed two separate links in the Description. Ideally, I would only want one link that's dynamically created based on whether the user is accessing the catalog item from the full application or the service portal. Is this possible?
Thanks,
Nate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-18-2018 01:27 PM
UPDATE:
So, referencing this article: Embedding widgets in Service Catalog
I created a macro variable for the catalog item, which references a widget:
Created a new widget with these values:
And it works great in the Service Portal:
However, the widget doesn't display in the full application:
Is there a way to have the embedded also visible in the full application?
Thanks,
Nate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-22-2018 07:27 AM
UPDATE:
Thanks to user, Joe McCarty, responding to my question in this thread To display a paragragh on the catalog item and make it read only what should be the variable type? , I was able to get the native application to show the same catalog item information as in the Service Portal.
Currently, based on the Jakarta version, if you want to add some text, or in my case, a link, on a catalog item that isn't a form field, and have the assurance it will display in both the Service Portal and the native application, you'll need to create two Macro variables. One of the macro variables needs to reference a Widget that contains the info you wish to display (this will only display in the Service Portal and in the native application), and the other macro variable will need to reference a macro, which will only show in the native application, and not in the Service Portal. And as Joe McCarty said, you're effectively doubling the work.
I'm relatively new to ServiceNow, so I'm still trying to familiarize myself with the tool and the terminologies.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-22-2018 07:30 AM
Correction: (this will only display in the Service Portal and NOT in the native application)
Above I said:
natecousins wrote:
...
One of the macro variables needs to reference a Widget that contains the info you wish to display (this will only display in the Service Portal and in the native application) ...