Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

GlideList Api in is not working in Agent workspace

Mathesh SK1
Tera Contributor

g_list.getChecked() is not working in agent workspace related list action

function onClick() {
var sysId = g_list.getChecked();     
alert(sysId);
var url = "/incident.do?sys_id=" + sysId;

g_modal.showFrame({
url: url,
title: 'Create Incident',
size: 'xl'

});
}

 

 

Can anyone please help me to solve this issue?

 

 

 

 

1 REPLY 1

Brian Dailey1
Kilo Sage

Hi Mathesh,

 

How are you implementing your related list action? I reported the same issue to SN support and was eventually told that it would have to be implemented as UFX Client Action, rather than as a Client Script as I had been trying.

 

In particular, I found that the g_list.getChecked() method would not work in a Client Script based action, even though other methods of g_list seemed to be working fine.  I have not yet built a UFX Client Action to test their statements and get it working, but maybe this will save you/others a bit of head-banging.

 

 

Thanks,

-Brian