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.
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.