Hi People!!!
We are starting to integrate our NetSuite account with the applications we develop inside the company, and to do that, we use SuiteTalk.
We have been able to login using passport object, and our first exercise is getting the info that is stored for the test customers that we have already inserted in NetSuite.
But we have a problem with the contacts that appear in the Relationship tab of the customer. When we try to get the one that we have for the customer we are doing tests with, we see that contactRolesList property is null, although we can see in the UI that the customer does have a contact.
The code that we use to check the contact information is:
RecordRef customerRef = new RecordRef { internalId = custInternalId, type = RecordType.customer, typeSpecified = true }; Customer customerItem = (Customer)_service.get(customerRef).record; RecordRef contactRef = customerItem.contactRolesList.contactRoles[0].contact; Contact contactItem = (Contact)_service.get(contactRef).record; Are we using the wrong property to get the Relationships->Contacts information?Thanks in advance,Ana Campo