I have a 1.0 question. findLineItemValue isn't beh...
# suitescript
m
I have a 1.0 question. findLineItemValue isn't behaving like I'd expect, and I think I'm messing something obvious up: var customerRec = nlapiLoadRecord('customer', customer_id); var team_id = customerRec.findLineItemValue('salesteam', 'salesrole', 1) team_id is being set to -1, so it's not finding a line item on the salesteam subrecord. I've checked to be sure the customer record is loading correctly, and I've also made sure there is a line item in the salesteam sublist with a salesrole value of 1. Not sure where I'm going wrong here.