is there any reason to get -1 for getLineCount fro...
# suitescript
z
is there any reason to get -1 for getLineCount from customer for contactroles sublist
e
You get -1 when it is not a valid or scriptable sublist
As to why
contactroles
might be invalid depends on the context in which you're accessing the Customer record
z
i made simple test in two different accounts, starting debugger. Script is the simplest one : custrec=record.load(customer,id) and then log.debug(custrec) One account shows sublist contactroles, second does not. In both cases script is executed as administrator. Contactroles is system sublist, not custom, as you know already that, so I don't have any. choice to make changes (inline edit, allow to edit child record), as usually we do for sublist custom record