For some reason, I can't fetch custom transactions...
# suiteql
m
For some reason, I can't fetch custom transactions (sales) using suiteql, although I can fetch all other transactions. I tried to find a permission specific to it, but I couldn't find it. Any ideas?
s
the table is CUSTOMTRANSACTIONTYPE
m
This fetches the definition, I was trying to fetch the records. I will try to add some permissions.
s
Yeah I figured after I sent that message, I'll have a look
Using Administrator and Developer role I can pick up a custom sale transaction from TRANSACTION table fyi
What role are you using? Sometimes it should complain about not having a certain permission also.
m
A custom role inherited from Developer
I wish it complained 😢
s
I assume you don't have Admin/Developer access?
m
When I use SuiteQL from the UI, with the Administrator role, I get the record.
But from the REST API, I don't get anything back.
s
Did you try REST api with Adminstrator too?
m
You can't do that.
You can't create an access token using the Administrator role.
s
Pretty sure you can, I would confirm the permission limitation by hitting the rest api with a role with higher privileges
m
It doesn't show up in the list.
I will try to add all the permissions I can.
These REST Role roles are custom ones.
s
try log in with Admin and generate the token from the dashboard, manage access tokens
m
That's what I am doing.
s
That menu should prompt you to choose an application/integration not a Role
m
What I sent earlier is the choices in the Role menu. It is what is relevant in this context.
s
I understand, but you could bypass the role selection by using the role you are already logged in with by going to Manage Access Tokens from the Home Dashboard and not from Setup > Users/Roles > Access Tokens
m
It worked. 🥳 I didn't know that. Thanks very much 🙏❤️
s
No probs. If it works for Developer also, you could compare the developer and your custom role and try spot the difference.
1
m
Got it.
j
Under the role, under Permissions Transactions list you need to add in each custom transaction type, I believe.