I'm trying to run a suitesuite 2.0 to check whethe...
# suitecommerce
g
I'm trying to run a suitesuite 2.0 to check whether a customers email exists the script runs in netsuite but when using it in an extension i get a : "INSUFFICIENT_PERMISSION","details":"Permission Violation: You need the 'Lists -> Customers' permission to access this page. I'm guessing this is because it's an anonymous user. ("<anonymous>(/Web Site Hosting Files/Live Hosting Files/SSP Applications/NetSuite Inc. - SCA 2020.2.0/Development2/extensions/MRF/MRF_Extension/1.0.4/Modules/LoginRegister/SuiteScript2/MRF.LoginRegister.Register.Service.ss:17)"]) How would I go about this?
s
Well the first thing I would say is that NetSuite already has duplicate email detection built in, so I would recommend using that if that is what you are trying to do. Second, if you're absolutely sure you want to do this, then you will need to elevate the permissions of the service file: https://developers.suitecommerce.com/elevating-permissions-on-service-files.html
I would be careful, however, as you're granting permissions to anonymous users for private information
g
Thanks I was aware of the existing duplicate account but i think the way the company has it's multiple brands and upgrading a existing brand from site builder to sca it is necessary. I will try elevating the permissions tomorrow.
That did the trick thanks again!
s
netsuite halo