Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Why fix script runs every time I install the plugin

xuchangchen
ServiceNow Employee

Hi, all

I have a fix script in the scoped plugin, usually fix script runs when we upgrade from lower version to a higher version and it always work like this.

However, this time the fix script I have runs every time after I zbooted and install the plugin, is this an expected behavior? If so, do we have a way to prevent this?

Here is the setting of my fix script:

active: true

before: false

flush_cache: false

run_once: true

unloadable: false

Thanks

5 REPLIES 5

I think without 'run once', the fix script will run everytime you install or upgrade, so 'run once' will still need to be checked, but interesting idea to add a precondition to determine if the plugin is installed for the first time, do you have an idea how to check that? thanks!