Is there a method on the customer object that I ca...
# suitecommerce
c
Is there a method on the customer object that I can feed an address
{ ... }
to and get back the internalid if it already exists?
p
Nope. You'll have to implement this.
c
No worries. Not a big deal, just didn't wanna re-invent the wheel. Thanks!
p
yup it should be a simple findWhere on the address collection!
b
ModelsInit.customer.getAddressBook()
Does this help?
c
Yep, I implemented the search I needed yesterday. I did use the addressBook method. Thanks!!