Content item with dynamic url

kristianhaahrde
Mega Contributor

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?

 

find_real_file.png

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

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

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

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

I would like to get the URL of Content item from sys_properties, is there any way to achieve this?