Dynamic URL in Menu Item

Satwik
Tera Contributor

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


1 ACCEPTED SOLUTION

Mohith Devatte
Tera Sage
Tera Sage

Hello @Satwik ,

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

find_real_file.png

Please mark my answer correct if it gave you an understanding

 

View solution in original post

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

image is missing

Regards
Ankur

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

Hi Ankur, 
I have attached the image now, please review now

Mohith Devatte
Tera Sage
Tera Sage

Hello @Satwik ,

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

find_real_file.png

Please mark my answer correct if it gave you an understanding

 

Hi Mohith,

Is there any other way or something to achieve this functionality of having dynamic URLs in menu items