At the moment I have different deploy records for ...
# suitescript
c
At the moment I have different deploy records for each sub that uses the scripts but each deployment record points to the same script. There's one script param on each deployment that loads a different config record that's sub specific.
b
If this was a user event script, i would consolidate all the scripts into one script if they are all using the same code
hardcode which configuration record in the code
or put which configuration record to load on the subsidiary record (or even put the configuration on the subsidiary record)
There is a cost to starting up a user event script, you dont want to pay it multiple times for the same code
c
@battk they're map/reduce scripts
They deal with either importing transactions from a third-party or sending trans to a third-party based on the contents of various saved searches
It's a WMS integration - the idea is that each subsidiary wants to send and receive various transactions. I designed it to have a config record ID param on the deployment record so subs could go go live without editing the code. Also, having a execution log for each sub is helpful
I just wanted to avoid lots of conditionals checking if various features are enabled or not in the config record, I don't think this is avoidable though.