RE: Accessing items from a custom suitelet list?

I have a Suitelet that loads a saved search and outputs the results into a custom list.  Is there a simple way to access the list from a client script?  I mean I could probably get the list items by directly accessing the DOM but I suppose there is an easier way that I am missing.

For example if I have a Suitelet with a custom list and button.  When I click on the button a function on the client script is called that outputs the list items to the console.

Thanks for any help.

DMS Rookie Asked on September 17, 2019 in SuiteScript.
Add Comment
2 Answers
Best answer

use currentRecord.get() in your client script to get the current “Record” of your Suitelet form. From there you should be able to reference the N/currentRecord section in the HelpCenter and use all the operations you are familiar with to get sublist data etc.

Intermediate Answered on September 17, 2019.

Thanks for your help this worked.

on September 18, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.