NetSuite 101: Which executes first, User Event scripts or workflows?

You might ask this question one day in your life as a NetSuite Developer: Which executes first on NetSuite records, is it the user event script or the workflow? This is one question that deserves an explanation since some scenarios in the scripting world requires an understanding of this subject. So I thought I’d do…

SuiteScript 2.0: Retrieving List/Record values returned by search.lookupFields

Remember when performing field look-up on a select type of field was as straightforward as this? var recSO = nlapiLookupField("salesorder", soId, ['status'], false); var soStatusValue = recSO.status; var recSO = nlapiLookupField("salesorder", soId, ['status'], true); var soStatusText= recSO.status; You call the nlapiLookupField API and you can retrieve the values directly, just like this: var soStatusValue =…