Hi Hope you are good. We are currently working wit...
# suitescript
s
Hi Hope you are good. We are currently working with Suite Bundler to create and deploy a SuiteApp created, using eclipse SDF to Client's account.    Now we need to do some configuration setup and need some suggestions for following scenario 1. Before or after installation 2. Before or after update 3. Before uninstallation. We need this to handle multiple scenarios like 1.  To check the installation date for update purposes from client's account. 2.  To give a bundle for demo purpose e.g. for 15 days and after that time, It stop working. 3.  Uninstall that bundle externally in client's account from our production account. Is there any way that we can stop bundle functionality on the basis of some checks?    Basically we want to manage everything i.e. installations, updations or uninstallations externally from production account.
b
are you deploying by a suiteapp/bundle or via sdf?
s
in Client's account deploying through suiteBundle
b
a bundle doesnt have automatic uninstall functionality, so you should implement some sort of license check in your code
s
how can we inactive scripts deployed on the client environment to implement license check?
b
its more you make your scripts have a startup process that checks if a license is valid before running
you can do complicated stuff like try to undeploy the script deployment if the license check fails
but the core should be checking for a valid license
you should probably have a caching mechanism so that you don't need to validate the license every time the script runs
s
Is there a way to search scripts based on the bundle id? I understand everything else and my idea considering your answers is find the scripts based on bundle id and then undeploy or inactive those scripts
b
id imagine you should be able to search for scripts by script id
im not sure if you can search by bundle id
s
Thanks Alot. You were a great help.