I am trying to do a simple API query to return all Contacts whose last name is “Smith”.
However I cant seem to partially match on the [Full Name] column.
For example: Lets assume I have the following people in my contacts table.
- John Smith
- Jane Smith
I can return the row with John Smith using the following GET call:
https://coda.io/apis/v1/docs/{DocId}/tables/{tableId}/rows?query={FullNameColumnId}:“John Smith”
QUESTION:
How can I return all contacts with last name smith?
I was hoping wild card characters or regex would help but I cant seem to make it behave.
E.g.
- WILD CARD: query={FullNameColumnId}:“*Smith”
- Regex: query={FullNameColumnId}:“.*Smith”
(These don’t work for me, but I have put them here in case someone can point out a simple error I am making)
Finally, this is a simplified example of what I am trying to achieve. For this reason I cannot simply create a last name column and query based on that. If I did the query would fail if a full name or first name is entered.
Thanks for your help!