Sorry to ask what is most likely a very simple question. I'm trying to understand how I can load a record with an in-line html portlet (customer dashboard) using SuiteScript 2.0.
In SuiteScript 1.0 I would simply define my function and have NetSuite pass the entityID in my script deployment. So for example:
function LoadPortlet(portlet, columns, entityid)
From there, I could use nlapiLoadRecord to pull the customer record using the entityID and then begin pulling the field values accordingly. I cannot seem to find any clear explanation on how to pull this for an in-line html portlet using SuiteScript 2.0. I saw the modules N/record and N/currentRecord but they don't seem to work in a portlet type script.I don't mind keeping with SuiteScript 1.0, I just thought this was a good time to learn 2.0... but I'm at a loss at what I would think is a very simple step.Look forward to any help. Thank you!