How to get the URL from the Menu Item Script.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2020 03:07 AM
Hi Team,
Requirement: In the portal, if we click on Menu item it should redirect us to the defined URL.
Could you please help me to get the URL from the server script in the Menu item.
URL would be in a field(new field) which will be present in the product table(u_cmdb_ci_products).
I need to create a new field in the Product table but not sure what type should I take URL or String?
Actually, we don't want to give the URL in the menu item directly, as it will get changed every 4 months. that is why we are giving the URL in the Product table.
Regards,
Priya
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2020 05:56 AM
Hello,
Configuration of menu items can be understood better via below link
And how to create URL can be better understood by below link
Mark my ANSWER as CORRECT and HELPFUL if it helps

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2020 06:00 AM
Hello,
If you don't mind, please either edit your question or provide an update as to what you're looking to do. You mention in question topic as well in the first few sentences you do want the URL in your menu item...then...at the last moment, the last sentence, you say:
Actually, we don't want to give the URL in the menu item, as it will get changed every 4 months.
That's pretty confusing...
For the field on your product table, you can use string, which allows for a more scalability, if needed.
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2020 06:24 AM
Hi Allen,
I have updated the Question.
Actually, we need to get the URL from the different table fields, as it will get changed after every 4 months.
Regards,
Priya

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2020 06:29 AM
Hi,
Thanks. I'm glad you found my reply as Helpful. This allows others to easily get on the same page with you.
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!