I’ve added some contacts to a customer and set the...
# general
j
I’ve added some contacts to a customer and set them to have different Contact Roles (some are native NetSuite Contact Roles, others are Contact Roles I’ve created). How can I retrieve the contact(s) with a particular contact role for a particular customer either via SuiteQL or just regular old SuiteScript? I tried this but it doesn’t return anything
Copy code
SELECT customerContactRole.*

FROM customer
JOIN customerContactRole
ON Customer.id = customerContactRole.entity

WHERE customer.id = 16802
e
The records catalog shows a join between entity.id (or customer id) and contact.company
j
I’m talking about the contacts listed under the Relationships tab on a Customer
which could include people who work at other companies