- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-09-2018 10:29 PM
I have created an UI action "getNoOfTask" on incident table.
It is working on Form Button but not working on List banner button, giving message that "No record selected".
Please see the below script and help me to find the solution. FYI - I have not checked it Client Callable Action.
function getPerformanceTasks(){
var gr = new GlideRecord('task');
gr.addQuery('sys_class_name', '!=', 'Request');
gr.addQuery('short_description', 'CONTAINS', 'Performance');
gr.query();
while(gr.next()){
gs.addInfoMessage(gr.number);
}
}
getPerformanceTasks();
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-09-2018 10:35 PM
I believe. you need to select the record in list view before executing the action unless you are not redirecting the page.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-09-2018 10:48 PM
I believe, you need to select the record to perform the action unless you are not redirecting the page to some where else like New or Edit UI Action.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-22-2019 11:17 PM
I found out that if you have duplicated UI action for "New" and change the Action name from "sysverb_new" to anything else, you will always see message "No record selected" if you do not click any record in the list. In case you leave the Action name = "sysverb_new" then you don't have to select anything in the list.