Discussions
nlapiLookupField from Partner Rec Problem
Hi,
What I’m trying to do is update existing Invoice records so they have a Partner set.
The problem I’m having is that part of my script process is to get the ‘Parent’ field from the Partner record, however NS doesn’t seem to recognise the field id ‘Parent’ when I perform a lookup (var subAgentOf = nlapiLookupField("partner", agentId, "parent");) so it throws… “nlobjSearchColumn contains an invalid column, or is not in proper syntax: parent.”
I’ve no idea why its doing this as Parent is defiantly its field id. So I’m just wondering if anyone has had any experience of this or any ideas what could be wrong?