is there any reason to get -1 for getLineCount from customer for contactroles sublist
e
erictgrubaugh
11/18/2020, 2:45 PM
You get -1 when it is not a valid or scriptable sublist
erictgrubaugh
11/18/2020, 2:45 PM
As to why
contactroles
might be invalid depends on the context in which you're accessing the Customer record
z
Zoran Roncevic
11/18/2020, 8:54 PM
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