Can i have two saveRecord functions in a client sc...
# suitescript
l
Can i have two saveRecord functions in a client script?
j
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
Yeah, don't do this…
s
an object can't have duplicate keys, so that ends up being { saveRecord: PreferredContactMethod } and the other setting is discarded.
Typescript would probably give you an error
l
Thanks