Hi Dojo,
I have a script that will get executed by deploying an application package, but it can also run by manual executing it. In the latter case I want to show an interactive window to the user executing it in case some data is missing.
Is there a way that I can know if a script is executed by an application package so that I don't show an interactive window in that case?
Hi Jens
With IDP we have such a scenario. We have the SetupWizard script that can either be run silently or with an interactive window.
We achieve this by using 2 scripts:
- Script A: Entrypoint for the user to run manually. This will call the subscript with an empty json for example so that script B knows to show the UI.
- Script B: Entrypoint for the application package. The package will fill in a json in the script parameter so it knows the default settings.