question

Jai avatar image
Jai asked ·

Get customer using query

There is method in CustomerConnector class customerConnector.getCustomers(String Query) to get list list of customer by passing query. what should be passed to this method as a query parameter .

I have tried,

customerConnector.getCustomers("phoneNumber=="+ "12345678098");]

I have also tried to get customer list using first name and last name , but Nothing is returned from sdk .

Is there anything I am missing in the query parameter??

Thanks, Jai

Customers
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Lee Tickett avatar image
Lee Tickett answered ·

Just tested and you just put the value you want to search for and it will search first, last and phone number. For example;

customerConnector.getCustomers("12345678098");

Or

customerConnector.getCustomers("Tickett");
Share
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community