W040: List contacts linked to an entity
Returns the contacts linked to a given customer, vendor, or other entity, with their methods hydrated. Triggered from Customer Detail and Vendor Detail.
Steps
- List by entity. Call
Contacts.listContactsByEntity(entityType, entityId). The L2 op returns the links joined with their contacts and methods in a single call.
Returns
A list of { link, contact, methods } rows.
Business rules
None.
Errors
None.