API GetContacts Questions

I’m experimenting with using the GetContacts API:

    • the default “SortBy” parameter is “Relevance.” Fair enough, but how does LACRM evaluate relevance?
  1. I’m using AdvancedFilters with “Phone” and “Contains” - how much do I need to worry about the how the stored number is formatted in LACRM? It appears that if I search for a string with no punctuation (8455551212) it will match a value stored in any of “(845) 555-1212”, “845-555-1212”, “+1 845-555-1212”. Is it a safe assumption that punctuation is ignored for phone when using “Contains”?

The relevance sort is a best guess, but we don’t define what factors are used to determine that. Sorry I know that’s pretty vague! If you want the data in a more defined order, I’d recommend selecting a different sort.

Yep! If you search the “Phone” field using a string with no punctuation, it’ll return all results matching the string of numbers, regardless of punctuation in the results. So if you search “8455551212” it’ll return all results with that exact number, whether the entry includes punctuation or not.

1 Like