UI Action not working on list banner.

kumaraj
Kilo Sage

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();

2 ACCEPTED SOLUTIONS

Shishir Srivast
Mega Sage

I believe. you need to select the record in list view before executing the action unless you are not redirecting the page.

 

 

 

View solution in original post

Shishir Srivast
Mega Sage

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.

View solution in original post

5 REPLIES 5

Shishir Srivast
Mega Sage

I believe. you need to select the record in list view before executing the action unless you are not redirecting the page.

 

 

 

kumaraj
Kilo Sage

Thank you Shishir for your help. It is really working.

Perfect. Please mark the answer correct if it helped.

Shishir Srivast
Mega Sage

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.