Hi team, I have a question - I’m trying to load a ...
# suitescript
c
Hi team, I have a question - I’m trying to load a Partner record and trying to get the contacts attached to it and Im facing issue is that, I’m always getting the count -1 even contacts exists on the partner . Below is the code I’m using
Copy code
var partnerRecord = record.load({
    type: record.Type.PARTNER, 
    id: '1762626’
});
Copy code
var contactCount = partnerRecord.getLineCount({
    sublistId: 'contactroles' 
});
b
you will want to learn about the different sublist types
sadly the best guide on this topic is in the suitescript 1 guide around page 171