- 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
‎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:46 PM
Thank you Shishir for your help. It is really working.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-09-2018 10:49 PM
Perfect. Please mark the answer correct if it helped.

- 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.