Hey, when I try to join the `item` table with the ...
# suiteql
v
Hey, when I try to join the
item
table with the
classification
table I get
Copy code
{
  "detail": "Invalid search query. Detailed unprocessed description follows. Invalid search type: class.",
  "o:errorCode": "INVALID_PARAMETER",
  "o:errorQueryParam": "q"
}
Are there some permissions I am missing or what I’m trying to do is not possible? How can I join the item with it’s class to get the class name?
c
Share your query. Assuming it was a straight suiteql query and not a rest-based one? They work differently
v
The query is
Copy code
SELECT
i.itemId,
c.id
FROM item as i
LEFT JOIN classification AS c ON i.class = c.id
WHERE i.itemId = 'sku'
returns the error shared above when run via HTTP Post to
/services/rest/query/v1/suiteql
I am sending the query within the
{"q": "…"}
not an issue with any of that
actually the error is
Copy code
{
 "detail": "Invalid search query. Detailed unprocessed description follows. Search error occurred: Record 'classification' was not found.",
 "o:errorCode": "INVALID_PARAMETER",
}
the one I shared earlier was when I tried “class” as table name
s
The query is valid, so it's probably a permission issue
v
I suspected that, thank you! Would anyone here by any chance know what’s the permission for that?
s
m
FYI you can see check permissions in the Records Catalog
👍 2
v
Ahh great thanks!!