Andrew
08/05/2021, 5:46 AMSELECT * FROM account
and similar via the Rest/SuiteQL API. Currently I am getting this for all requests:
Invalid search query. Detailed unprocessed description follows. Your current role does not have permission to perform this action.
tdietrich
08/05/2021, 6:18 AMmichoel
08/05/2021, 6:25 AMbattk
08/05/2021, 7:49 AMbattk
08/05/2021, 7:50 AMbattk
08/05/2021, 7:50 AMAndrew
08/05/2021, 8:52 PMmichoel
08/05/2021, 11:04 PMAndrew
08/05/2021, 11:12 PM{
"type": "<https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.2>",
"title": "Unauthorized",
"status": 401,
"o:errorDetails": [
{
"detail": "Invalid login attempt. For more details, see the Login Audit Trail in the NetSuite UI at Setup > Users/Roles > User Management > View Login Audit Trail.",
"o:errorCode": "INVALID_LOGIN"
}
]
}
michoel
08/05/2021, 11:15 PMAndrew
08/06/2021, 12:42 AMSetup
Accounting Lists View
Log in using Access Tokens Full
REST Web Services Full
SOAP Web Services Full
User Access Tokens Full
Lists
Accounts View
Subsidiaries View
Work Calendar View
Reports
SuiteAnalytics Workbook Edit
Transaction Detail View
Trial Balance View
Transactions
Find Transaction View
And the query in question:
SELECT ACCOUNT.id,
ACCOUNT.acctnumber,
SUM(TransactionAccountingLine.TransactionAccountingLine.amount) AS balance FROM TRANSACTION,
ACCOUNT,
TransactionAccountingLine,
transactionLine
WHERE TransactionAccountingLine.ACCOUNT = ACCOUNT.ID(+)
AND transactionLine.TRANSACTION = TransactionAccountingLine.TRANSACTION
AND transactionLine.ID = TransactionAccountingLine.transactionline
AND TRANSACTION.ID = transactionLine.TRANSACTION
AND ACCOUNT.isinactive = 'F'
AND TRANSACTION.posting = 'T'
AND ACCOUNT.ID IS NOT NULL
AND ACCOUNT.issummary = 'F' GROUP BY (ACCOUNT.id, ACCOUNT.acctnumber)
battk
08/06/2021, 11:55 AMbattk
08/06/2021, 11:55 AMAndrew
08/09/2021, 10:41 PMmichoel
08/09/2021, 11:50 PM