Can i have two saveRecord functions in a client script?
j
jen
05/11/2022, 7:04 PM
why would you ever want this. Also….no. I’d expect you’ll either get an error, or SuiteScript will ignore the second function definition so you’ll just end up with one saveRecord fn.
c
Craig
05/11/2022, 7:39 PM
Yeah, don't do this…
s
Shawn Talbert
05/11/2022, 7:55 PM
an object can't have duplicate keys, so that ends up being { saveRecord: PreferredContactMethod } and the other setting is discarded.