startsWith( )


Refines a query to match items whose specified property value starts with a specified string.

The startsWith() function refines a ContactsQueryBuilder to only match items where the value of the specified property starts with a specified string. Matching with startsWith() is case-sensitive, so "TEXT" does not start with "tex".

You can only use startsWith() with a property whose value is a String.

Method Declaration
Copy
Method Parameters
propertyNamestringRequired

The property whose value will be compared with value.

Supported properties:

  • "primaryInfo.email"
  • "primaryInfo.phone"
  • "info.name.first"
  • "info.name.last"
  • "info.emails.email"
  • "info.phones.phone"
  • "info.addresses.street"
  • "info.addresses.city"
  • "info.company"
  • "info.jobTitle"

valuestringRequired

The value to match against.

Returns
Did this help?