i am trying to get the line fields ```var item = ...
# suitescript
s
i am trying to get the line fields
Copy code
var  item =   rec.getValue({ fieldId: 'lineFields.item' });
s
rec.getSublistValue()
The chrome tool uses an xml interpretation of the record I believe, not regular NS api's to build that object.
r
Like how @GeneralKenobi mentioned, you might need to use
Copy code
Record.getSublistValue({
          sublistId: string*,
          fieldId: string*,
          line: number*
      })
instead
s
You could try using
Record.getSublistFields(options)
and loop that array and build your own object if you really need that for some reason.
My guess would be you are retrieving/storing way more dat than necessary in your object.
s
how do i find the sublistid
this is on a IF
s
It's
item
, the chrome tool generally uses the sublistId under the lineFields.