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
Edgar Valdes
06/05/2024, 11:36 PM
The records catalog shows a join between entity.id (or customer id) and contact.company
j
jen
06/06/2024, 2:20 PM
I’m talking about the contacts listed under the Relationships tab on a Customer
jen
06/06/2024, 2:20 PM
which could include people who work at other companies