Content item with dynamic url
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-01-2018 04:37 AM
I'm creating a "Link" category in our service portal, using content items with content type = external content.
It give me the solution i want. But now i have a url where i need to replace %username% with the intialer from the user who logged in the service portal. How is that possible with content items?
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-03-2018 05:33 AM
Hi Kristian,
As of now I don't think any way to do this.
One approach is to configure the dictionary for URL field to have the value as default value with value as
http://abc.com + gs.getUserName(); // add your static URL
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2019 09:56 AM
Hi Ankur,
I have the similar requirement where I need to make "abc" as dynamic as its a third party tool URL and will keep changing on every instance. I am struggling to pass it as a property in Content item URL. Can you please help here?
Regards,
Kopal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2024 09:03 PM
I would like to get the URL of Content item from sys_properties, is there any way to achieve this?