The ID I see in the relationships/customers list is the one I assume I use...
Lets say Parent CO Inc has ID shown as 123
When adding the new customer info should this code related to parent do the trick?
Dim oParent As New Netsuite.RecordRef
oCustomer.parent = oParent
oCustomer.parent.externalId = "123"
It doesn't seem to work - customer gets added but not as child of defined parent. When I change the above externalID to InternalID I get an error:
- <writeResponse>
- <platformCore:status isSuccess="false" xmlns:platformCore="urn:core_2008_2.platform.webservices.netsuite.com">
- <platformCore:statusDetail type="ERROR">
<platformCore:code>INVALID_KEY_OR_REF</platformCore:code>
<platformCore:message>Invalid parent reference key 193.</platformCore:message>
</platformCore:statusDetail>
</platformCore:status>
</writeResponse>
I am getting the parents key from the list in Netsuite sample shown below:
Edit | View [View Dashboard] 193 Test Company SalesRep CUSTOMER-Closed Won
Thanks,
Scott