- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2024 09:34 PM - edited 11-11-2024 06:05 AM
I am unable to get the URL parameter of UI Page.
Here is the URL:
I am reading the URL query parameters using this code:
<j:set var="jvar_sys_id" value="${RP.getParameterValue('sys_id')}" /> <j:set var="jvar_test" value="${RP.getParameterValue('sysparm_test')}" />
Although both parameters are present in the URL, only “sys_id” has a value, while “sysparm_test” is empty.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2024 06:04 AM
I discovered the issue myself. The getParameterValue method does not work with the URL format https://mycompany.service-now.com/ui_page.do?sys_id=cca208c91b799610e340da47b04bcbf5.
I changed the URL to https://blkdev.service-now.com/myUIPage.do, and it started to work. However, this look like a bug of ServiceNow to me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2024 06:04 AM
I discovered the issue myself. The getParameterValue method does not work with the URL format https://mycompany.service-now.com/ui_page.do?sys_id=cca208c91b799610e340da47b04bcbf5.
I changed the URL to https://blkdev.service-now.com/myUIPage.do, and it started to work. However, this look like a bug of ServiceNow to me.