Discussions
SuiteWorld is the largest annual gathering of the NetSuite community! It will be held in Las Vegas on October 6-9, 2025. Our customers and partners look forward to SuiteWorld every year as a place to hear the latest from NetSuite, get hands-on learning, and connect with each other. Register now!
Same SuiteQL query behaves differently in SuiteQL RESTFul API and query module runSutieQL
We have a query to retrieve the inventory assignments of partially fulfilled sales orders. We used runSuiteQL from query module, results were returned correctly except null was returned for inventory assignment since the user roles didn't have Item Fulfilment permission. After we added the Item Fulfilment permission, the result ended up the following: "{"columns":null,"types":["null","null","null","null","null","null","null","null","null","null","null","null","null"],"results":[],"metadataProvider":"SUITE_QL"}".
We tried the same query on the RESTFul SuiteQL API, the results were returned correctly. We delete the RESTLet script which uses runSuiteQL and redeployed it again but ended up with null.