Show/Hide Toolbars

To return whether a record has a particular category, you can use the hasCategory() method and the full tree position of the category. The following code sample checks if a contact has the "Vendor" category:

boolean isVendor = contact.hasCategory("CONT_EXTE_VEND");

For a sample, see the Checking Lists of Added Categories sample.