query related to ui action
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2023 07:17 PM
Hi ,
requirements is:
there is related link(ui action ) on incident form, when click related link name is "show only records which have caller id is abel tuter" should show only list of record of caller id and caller id should show on url.
Ex. on incident form caller_id= abel tuter, when you click on that link , show list of record of abel tuter.
15 REPLIES 15
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2023 09:14 PM
Hello @AnithaAnumanthu ,
Please try the below code in UI Action, it works in my PDI as per your requirement
showIncidents();
function showIncidents(){
var query = "caller_id="+current.caller_id;
var url = "./nav_to.do?uri=incident_list.do?sysparm_query="+ query;
action.setRedirectURL(url);
}
Please mark my answer correct and helpful, if it works for you.
Thank you
Please mark my answer helpful & correct ✅ if it helps you
Thank you
G Ramana Murthy
ServiceNow Developer
Thank you
G Ramana Murthy
ServiceNow Developer