Hello, how can I update custom line item value of invoice->time sublist. When I'm trying to load record of invoice, this particular field itself is not coming in the record object. Could anyone help me out with this?
s
samyt
09/04/2018, 7:44 AM
go to the record. open in the xml mode
p
Paul Lawton
09/04/2018, 8:06 AM
To do what samyt says, just append &xml=T to the url.
Or you can open dev console and run
var rec = nlapiLoadRecord('recordtype', 'internalid');
Output rec to console and you'll see that part of the object is 'lineitems'.
This is a really good article covering both API versions https://stoic.software/effective-suitescript/4-sublists-in-ss2/
s
sai
09/04/2018, 8:14 AM
@Paul Lawton I tried using both cases, but the field is not visible.
p
Paul Lawton
09/04/2018, 8:40 AM
@sai Can you pm me a screenshot of where you're looking for it in dev console, please?
Did you say it's a custom transaction line field, yes?
s
sai
09/04/2018, 8:45 AM
@Paul Lawton Yes it's an transaction line field which applies to all transactions. I tried by using nlapiLoadRecord and also xml=T, in both cases I can able to see this field under transaction item sublist, whereas in time sublist I'm unable to get this field in record object.
p
Paul Lawton
09/04/2018, 8:51 AM
@sai Maybe the answer is in the custom form? Sorry, not 100% sure what to advise now, but it's maybe worth a look there.