Discussions
Best way to access custom records from contact
Hey, all
I've got a Custom Record called 'Inquiry Information', ID 'customrecordmks_inquiry_information' that is used to hold Inquiries people enter on our website. It has a List/Record field 'Contact', ID 'custrecordmks_contact' pointing to Contact, with Record is Parent.
In an event script, on an edit of contact, we'd like to retrieve these records to do some calculations (we're doing some lead scoring and they get bonus points to their score if they've entered inquiries and even more if they've entered specific inquiries)
How can I get them? I know with build in sublists, I can use getLineItemCount() and go from there, but I've tried a few options and always get -1. How do I get the associated records?