Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

Current object not working in list actions declarative action

Gaurav99
Tera Contributor

I want to add conditions like current.state ==1 then only it should show the list action. But In declarative action condition script it is not working. Also this declarative action should move all the selected changes to cancel state.

1 REPLY 1

Nilesh Pol
Kilo Sage

Hi @Gaurav99 

Use below fundtion:

(function() {

 return current.state == 1;

 })();