Skip to main content
Back to Functions

XO.LCONTACT

Lookup a property of a contact by contact name. Returns email, phone, account number, or status.

Syntax

=XO.LCONTACT(org_id, contact_name, property)

Parameters

ParameterRequiredDescription
org_idYesOrganization ID from XO.ORG()
contact_nameYesContact name (must match exactly)
propertyYesProperty to return (0-3)

Property Options

CodePropertyDescription
0emailEmail address
1phonePhone number
2accountNumberAccount number/code
3statusContact status (ACTIVE, ARCHIVED)

Examples

Get contact email:

=XO.LCONTACT(A2, "ABC Corp", 0)

Get phone number:

=XO.LCONTACT($A$2, "John Smith", 1)

Related Functions