How to pass URL parameters to a service portal homepage?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2017 09:16 AM
Hi there,
I have set up the OOB List & Form (lf) page as the homepage of a service portal. I would like to pass in the name of the table in the URL param, so that when the service portal homepage loads, it doesn't need to ask the user to enter the table name. How can this be achieved?
So when users go to https://xxxx.service-now.com/<service-portal>
I'd like to append the URL table param, so it becomes https://xxx.service-now.com/<service-portal>?table=x_mytablename
The end result should be that the table data loads immediately in the left list.
Is there some configuration option on the service portal record to add url params?
Thanks,
Jenny
Message was edited by: Jenny Hu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2017 10:35 AM
Hi Jenny,
The easy and simple solution could be add script in your homepage widget where if the URL parameter is missing then consider default value like table = x_mytablename.
or you can redirect user to new URL as per below screenshot :
This validation either you can add with existing widget or you can create new widget and add to your homepage.
My suggestion would be if the URL parameter is missing in that case keep some default value instead of redirecting users to new URL.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2017 04:31 AM
Thank you Chirag! Let me give that a try and I will let you know how it goes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2022 10:41 PM
Are you able to achieve this @JennyHu