Hi. I am trying to use TBA (oath1) to call RestLet...
# beginners
e
Hi. I am trying to use TBA (oath1) to call RestLets or SuiteQL, but I dont know what access the role needs. I now get
Your current role does not have permission to perform this action
e
Thanks, @battk I have a feeling that the token gets the permissions from the user that generated it, and not from the user I select when generating 🤔 Will read more in the documentation to try to find out
b
it gets it from the role that is selected for the token
the basic permissions from that documentation should at least get you into the restlet
after that, you need to add on whatever permissions are needed to do what your restlet does
if you just want to test the basics, make the restlet do something boring, like return an empty object
e
I tried to use a simple SuiteQL query inside the RestLet, but it says:
SSS_SEARCH_ERROR_OCCURRED - Record \'Customer\' was not found
b
thats good, you got into the restlet
now you need to give yourself permission to make a customer dataset
e
Ok, and that is a permission I give to the role?
b
yes
in general your role needs the same permissions to access the record in the ui
👍 1
since you are trying to use suiteql, that means your role needs the permissions listed in Enabling SuiteAnalytics Workbook in Your NetSuite Account
and whatever permission to view customers
e
If I run SuiteQl directly from `/services/rest/query/v1/suiteql`I get
Copy code
Your current role does not have permission to perform this action.
same thing as before, you still need to add enough permissions to view customers using the role
e
But I have set these permission. I must be missing something here
b
you can try listing what permissions you gave your role
and which features you enabled
e
You mean listing it in the UI?
I got one working now 🙂 Thanks for helping. The error said that the record was missing, but it was a permission missing
I still cant use SuiteQL directly from the
query/v1/suiteql
endpoint. So that must also be an own. permission on the role?
b
rest comes down to those 6 things listed in the documentation
e
Looks like the
Oracle NetSuite Umbrella Beta Program Recruitment Form
is not completed on this account. That probably needs to be done?
b
yes
👍 1
e
I thought that REST Query Service was beta
b
in about a month, it wont be
👍 1