Question, I've just recently deployed a Client Scr...
# suitescript
m
Question, I've just recently deployed a Client Script but in our Production system, it's only running on new records (logging first line no if statement). Sandbox it runs both on New and Old records. Any ideas why?
/**
 
* @NApiVersion 2.x
 
* @NScriptType ClientScript
 
* @NModuleScope SameAccount
 
*/
define(['N/currentRecord', 'N/record', 'N/ui/message'],
    
function (currentRecord, record, message) {
        
function saveRecord() {
            
log.debug('Start', 'Started');
s
Not sure if that is how it normally works but maybe the form in production has a client script associated with the form which is making the new file not be called?
m
I have a few versions of the form in use and it doesn't look like the form. Another client script I have is running on that same form. Even tried making a new deployment, extremely strange
b
Potentially hit the 10 client script per record limit
m
@battk YEP that was it - wow wish I knew that was a thing. Have quite a few integrations that are flooding the records. Thanks for the help both of you!