HiWe need to get a field value in a view rule script.The current object is not accessible from it.we did try with business rule as well but it didn't work.
Hi DurgaPlease try this code:var gr = new GlideRecord('incident'); gr.addQuery('state','resolve'); gr.query(); while (gr.next()) { gs.print(gr.getRowCount());gr.active=false; gr.update(); }I hope this will helpfulThanks and Regar...