hey folks, I've a question I can't find an exact a...
# suitescript
m
hey folks, I've a question I can't find an exact answer for in the Suitelet SS2.0 Help: If I have a Suitelet deployment set to AVAILABLE WITHOUT LOGIN and I have the Audience ROLES selected as Select All, and everything clear under Departments, Groups, Employees, and Partners, can I not load a record in that Suitelet? For example, the external link for the Suitelet works until I try to load a record, then I get this error:
{"type":"error.SuiteScriptError","name":"INSUFFICIENT_PERMISSION","message":"Permission Violation: You need the 'Transactions -> Purchase Order' permission to access this page. Please contact your account administrator.","stack":["createError(N/error)","onRequest(/SuiteScripts/mySuitelet.js:17)"],"cause":{"type":"internal error","code":"INSUFFICIENT_PERMISSION","details":"Permission Violation: You need the 'Transactions -> Purchase Order' permission to access this page. Please contact your account administrator.","userEvent":null,"stackTrace":["createError(N/error)","onRequest(/SuiteScripts/mySuitelet.js:17)"],"notifyOff":false},"id":"","notifyOff":false,"userFacing":false}
b
what role is the deployment running as?
plusone 1
m
Current Role
b
that wont work for external users
m
Aah, ok, thanks
Will I need to setup a new role?
b
preferably
with only the permissions needed
m
cool, thank you.
b
you are supposed to do that whenever you setup a deployment to run as a specific role