Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
Querying Custom Records with REST API
Hello,
Is there a way to use the /query/v1/suiteql endpoint in the REST API to query custom records of a particular type? I can get the information about the custom type itself using this in the request body:
{
"q": "SELECT * FROM CustomRecordType"
}
However, if I try:
{
"q": "SELECT * FROM CustomRecord"
}
I get this message: Invalid search query. Detailed unprocessed description follows. Invalid search type: CustomRecord
Viewing the schema browser at https://www.netsuite.com/help/helpcenter/en_US/srbrowser/Browser2021_1/schema/record/customrecord.html, it looks like that should be a valid table name. The user tied to the token I'm using for my test requests is in the admin role, so I don't think it's a permissions issue.