Hi, Is it possible to get the browser time zone an...
# suitescript
s
Hi, Is it possible to get the browser time zone and accept language in SuiteScript?
b
from what type of script?
s
SuiteScript 1.0
We have a payment processing plugin and the SuiteScript triggers when the sale order is created. So we need to get the above information to send it to the gateway.
b
browser information is not available for the plugin
s
Is there any alternative way to get this information?
b
getPreference can be used to get the user's timezone and language settings for netsuite
no actual requirement to match the actual browser's values
but typically they match
or are close enough to be usable
s
Alright
Thanks
@battk I have tried function getPreference() function and getting the below error. ReferenceError: “getPreference” is not defined.
b
what does the code look like
s
message has been deleted
b
read the documentation i linked
s
got it, thanks