how would you know if the script touched the sales...
# suitescript
s
how would you know if the script touched the sales order? Execution log of the script gives me internal ID it doesn't give me the document number, so i gotta keep looking up the internal ID, when i look at system information i don't see any record of script touching that record when the script was created we only had one subsidiary on NetSuite, now we way 5 and this script was never updated so I have a feeling it runs on "ALL" sales order not just the intended subsidiary
b
if you mean ran, then the answer is to take a look at the script deployment's audience, event type, and maybe context filtering
if you want to be more in depth, you use APM
s
The script tells me internal id of sales orders but what I am trying to figure out, is if it's only running for intended subsidiary or all, that script runs 3 times a days and has over 1500 line items
I tried spot checking but it seems to be for intended subsidiary but when I looked at the script it doesn't mention subsidiary name or internal id
b
again, take a look at the fields on the deployment that determine if it will run
if the deployment doesn't have a restriction that prevents it from running, then it will run run
depending on the code of the script, it may or may not actually do anything
if you cant tell if a script deployment says it will run on not, I heavily recommend you do
the alternative is the APM bundle, which is basically torture
s
When you say fields on deployment you mean parameters?
s
Script deployment doesn't have audience, event type or context
message has been deleted
b
thats a scheduled script
it doesnt run on particular records
honestly it can run on any record
you have to go through the code itself to see
s
Yeah it is a scheduled script it runs at 5am and 12 pm
this is another script deployment
b
you have to understand the code to know which records a scheduled script will run for
s
it says sales order
b
you should be able to take a look at that code and come up with a reasonable guess on which search you need to look at
s
oo thanks, you might be upto something i think i found the search its using