Michael Scott
09/28/2021, 1:35 PMentity.getSublist("addressbook","addressbookaddress",<index>)
to get the addressbookaddress ID but I am guessing I should use that key to search for some other ADDRESS BOOK record to obtain addr1 addr2 city , etc. The problem is that there is no search.Type.ADDRESSBOOK
or anything like it. What is the correct approach to get teh billing address for a customer or vendor?ehcanadian
09/28/2021, 2:56 PMaddress1
city
etc using search columns for your customer search, and use a filter of isdefaultbilling = 'T'
Michael Scott
09/28/2021, 2:57 PMstalbert
09/28/2021, 3:28 PMconst billingAddr = _.find(customer.addressbook, a => a.defaultbilling == true)
is basically how I'd do it rather than a search. I think that defaultxxx
flag is a boolean?