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.
Don't miss out on our Question of the week! You only have until tomorrow, September 12, 2024, 2PM ET to comment your answers and earn rewards! Click here for more details.
Get ready to take on exciting new challenges and become the next SuiteMaster of the Month!
Join the largest gathering of the NetSuite Community at SuiteWorld in Las Vegas, September 9-12! Discover cutting-edge innovations, attend insightful sessions, network with industry leaders, and elevate your business to new heights. Register here!

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

edited Aug 25, 2024 7:21AM in SuiteCloud / Customization

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 3 (Jul-Sep 2024)

This Week's Leaders

This Month's Leaders

All Time Leaders