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.

Trying to Disable execute Button While Async Job Runs

praveen kummar
Tera Contributor

We would like to be able to disable the 'Execute Now' button for a Certification Schedule while the invoked async job runs.

The UI Action is inherited from the sysauto table. T however, the button is hidden for ALL schedules and the value never gets reset by the script, so the button never comes back.

Condition: !current.isNewRecord() && !current.getED().getBooleanAttribute("disable_execute_now") && !(current.getTableName() != 'cert_schedule')

Script:

current.update();

SncTriggerSynchronizer.executeNow(current);

0 REPLIES 0