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.

All items from List Choice UI Action

grosch
Mega Expert

I'm setting up a UI Action where I'll only click "List Choice".   It seems like the action is run once per item chosen.   What I'm looking for instead is a way to get all of the items chosen and then pass that complete list over to a UI Page.

Is that possible?

1 ACCEPTED SOLUTION

Ah, my bad. It's available in the UI Action condition, but not the script area.



Try this:


var uri = action.getGlideURI();


var parmID = uri.get('sysparm_checked_items');


View solution in original post

7 REPLIES 7

Cory,


It looks like you're using a client side action, and I believe OP is referring to a Server side action.


I get an error saying g_list is not defined.


abusch
Giga Contributor

Hi Scott,



Did you resolve the script executing once for each item checked?   I'm facing the same issue.



Thanks!