- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2022 12:48 AM
Hi everyone,
I wanted to have a dynamic URL in the menu item of service portal header. I have written a script include to return the dynamic URL, but on click of the menu item, url is not getting updated and so nothing is happening.
I have executed the script include script using background script. its working well, return the correct string.
Am I missing any step to configure. Please help how to achieve to get a dynamic string for menu items
Solved! Go to Solution.
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2022 01:09 AM
Hello
Menu items wont allow dynamic URL unfortunately ,it should be static and even if you use a script include to get the dynamic URL it returns the error in console like below
Please mark my answer correct if it gave you an understanding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2022 12:57 AM
Hi,
image is missing
Regards
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
07-20-2022 01:16 AM
Hi Ankur,
I have attached the image now, please review now
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2022 01:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2022 01:17 AM
Hi Mohith,
Is there any other way or something to achieve this functionality of having dynamic URLs in menu items