is the 'display name' of an item available in Suit...
# suitescript
m
is the 'display name' of an item available in SuiteScript when loading an invoice? if so, what is the field called?
or do i need to have a custom field that sources it?
d
Copy code
var itemRecord = record.load({
		type: record.Type.INVOICE,
		id: recordID
	});
	
var sublistFieldValue = itemRecord.getSublistValue({
		sublistId: 'item',
		fieldId: 'item_display',
		line: 1
	});
m
This is what i tried but it shows the normal item name. instead of the display name field:
i ended up creating a custom field which sources the display name on the invoice line and reference that.
d
Can't tell, as your field descriptions differ from ours, but that may be salesdescription, which doesn't appear to be directly accessible. I'd have got the 'item' value from the sublist and done a search.lookupFields(), but the custom field route is equally valid and probably consumes less governance.