- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2016 09:41 PM
I have a script that I want to run.
This script deploys some functionality. It is effectively an "install script",
but it's a little bit metamorphic because it customizes the install to the user's instance and usage.
It's about a thousand lines, but it installs something closer to like 100k lines (intelligently; not haphazardly), so obviously the usual methods of installing an app or loading an update set aren't... at least as far as I know... a viable option.
Let's say it's: "doInstall();"
Is there any way to package this script in such a way, that I can easily deploy it into an instance? Something like an update set that would deploy and then execute (only once) a script include?
I can put it into an update set as a script include, but I'm not sure how to actually invoke the script to do the install.
Any pro-tips for me?
EDIT: Whether it's a pre-packaged "install script" or some way to simply execute a script after installing an update set, it would be useful to know how to do this.
I have tried adding a scheduled script execution to an update set, then manipulating the update set XML so that its' "run_start" value is "javascript:gs.minutesAgo(-3)", but that doesn't seem to work. It doesn't accept that value.
Perhaps there's some way to execute a script inside of an update set prior to deploying it?
Anything like that, or any point in the right direction would be extremely useful.
Message was edited by: Timothy Woodruff
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2016 04:42 PM
In case anyone happens across this article, I found a way to do it. I packaged it into this app: SN Pro Tips — Update Set Collision Avoidance
You can download that to see how it works, in case you need an example to work off of.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2016 04:03 PM
Hi Timothy,
You can capture any files/customizations of "Global" scope in scoped application. However your fix script as part of scoped application will also work provided the target table "Application Access settings" allows the operation to be executed.
Please let me know if you have any questions.
I hope this helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2016 08:04 PM
I need to be able to access the global scope natively, so I think that a scoped application is not going to work for my use case.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2016 08:07 PM
Hi Timothy,
Can you please provide more details on what is the exact table you want to update so that I can help you further.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2016 11:53 AM
Sorry, I never worked on Scoped applications much. I hope you will resolve your issue with the help of the experts in the community
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2016 04:42 PM
In case anyone happens across this article, I found a way to do it. I packaged it into this app: SN Pro Tips — Update Set Collision Avoidance
You can download that to see how it works, in case you need an example to work off of.