Discussions

Check out Oracle NetSuite upcoming events and conferences here
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Update your Profile with your Support type to get your Support Type badge.
Expand your NetSuite knowledge by joining our Ask A Guru Live sessions. RSVP on this event now.
Community Poll: What sort of content would you like to see more of?

NSC | How to pull a data using SuiteQL in Browser Console?

SuiteQL is a query language based on the SQL-92 revision of the SQL database query language. It provides advanced query capabilities you can use to access your NetSuite records and data.

If you want to pull a data using SuiteQL without deploying a SuiteScript record, you can use the Browser console.

Scenario

1. Pulling the “title” of the specific Task record. (See Screenshot)

2. Navigate to any Scriptable page, in Edit Mode, click F12 on keyboard > Console

  • Paste the below sample code
require(['N/query'], function (query) {
   var csFileIdQuery = "select title from task where id='1076'"; // 1076 is internal ID of Task record
       var results = query.runSuiteQL(csFileIdQuery).asMappedResults();
       console.log(results)
});

Richard James Uri | SuiteCloud and WMS Tech

----

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!

Leaderboard

Community Whiz

Quarter 2 (Apr-Jun 2024)

This Week's Leaders

This Month's Leaders

All Time Leaders