- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-09-2025 10:37 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-09-2025 10:41 PM
Example: pass parameter from UI action as shown below:
Method 1: Access parameter in html code.
We can attach value to html tag directly by using below syntax:value="${sysparm_number}
Access parameter in UI Page HTML Code as shown below:- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-09-2025 10:43 PM
There are another methods..
Method 2: Access parameter in UI Page client script.
Access parameter in UI Page Client Script Code as shown below:
Note: remember to always use variable name starting with sysparm_xxxxx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-09-2025 10:41 PM
Example: pass parameter from UI action as shown below:
Method 1: Access parameter in html code.
We can attach value to html tag directly by using below syntax:value="${sysparm_number}
Access parameter in UI Page HTML Code as shown below:- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-09-2025 10:42 PM - edited ‎10-09-2025 10:44 PM
// Get sys_id of the current record
var sysId = current.getUniqueValue();
var tableName = current.getTableName();
// Get the current view name
var viewName = action.getGlideURI().get("sysparm_view");
if (!viewName) {
viewName = "default"; // fallback if no view specified
}
// Build Service Portal URL (use your page ID: test)
var portalPage = gs.getProperty('glide.servlet.uri') + 'sp?id=test&table=' + tableName + '&sys_id=' + sysId + '&view=' + viewName;
// Redirect user to Service Portal page
action.setRedirectURL(portalPage);
Above UI action script redirects with sys_id, table, view of record - update it for your use case, place this code under script section of your UI action.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-09-2025 10:50 PM
@miftikhar20 it didn't work for me
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-13-2025 03:29 AM
Yes, it won't. This script works when you want to send data from a record via UI action to the portal page, not the system UI pages.
Anyways, glad you got the required solution.