How to query Vendor Addresses? Attempting to acces...
# suiteql
e
How to query Vendor Addresses? Attempting to access the vendor addressbook via the join on vendor id = vendoraddressbook.entity (as per the documentation, Records Catalog), but receiving a cryptic message that this field isn’t exposed (even though the documentation references it for this use?)
Copy code
SELECT vab.id

FROM Vendor v
INNER JOIN addressBook vab ON v.id = vab.entity

Where v.id = 1420
Search error occurred: Field ‘entity’ for record ‘AddressBook’ was not found. Reason: NOT_EXPOSED - Field is marked as internal for channel SEARCH Field ‘id’ for record ‘AddressBook’ was not found.
relative url to Records Catalog for Vendor:
/app/recordscatalog/rcbrowser.nl?whence=#/record_ss/Vendor
m
Copy code
SELECT
  vendorAddressbookEntityAddress.addr1,
  vendorAddressbookEntityAddress.state,
FROM
  Vendor
  LEFT OUTER JOIN vendorAddressbook ON Vendor.id = vendorAddressbook.entity
  LEFT OUTER JOIN vendorAddressbookEntityAddress ON vendorAddressbook.addressbookaddress = vendorAddressbookEntityAddress.nkey
WHERE
  vendor.id = 679