Hi everyone, I'm working on a SuiteCommerce extens...
# suitecommerce
n
Hi everyone, I'm working on a SuiteCommerce extension that updates quotes via a Service 2.0. I'm running into a permissions issue: when I log the current role using
runtime.getCurrentUser().role
, it returns a different role than the one configured for the service in the backend. How can I ensure that the service executes with the correct role and has the necessary permissions? The role configured in the backend has full permission for Transactions → Quotes, but I'm still getting this error:
error.SuiteScriptError","name":"INSUFFICIENT_PERMISSION","message":"Permission Violation: You need a higher level of the 'Transactions -> Quote' permission to access this page.
s
Probably you need to go ti the Service file in the extension folder and give it permissions or update if it's a custom role the permissions for Quotes