We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

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;

 })();