
Issue – We are not able to search the lead via phone number using the Search Lead by Criteria API (https://api-in21.leadsquared.com/v2/LeadManagement.svc/Leads.Get?).

Resolution – Seach Lead By Criteria API works in a different way where it will show the leads only if all the values provided match.
Example:-
The parameter which is passed in the body is
{
“Parameter”: {
“LookupName”: “Phone”,
“LookupValue”: “+91-97xxxxxxxx”,
“SqlOperator”: “>”
},
“Columns”: {
“Include_CSV”: “ProspectID, FirstName, LastName, EmailAddress”
},
“Sorting”: {
“ColumnName”: “CreatedOn”,
“Direction”: “1”
},
“Paging”: {
“PageIndex”: 1,
“PageSize”: 100
}
}
So in the LookupValue if you pass the value as 91xxxxxxxx it will not show any value in the result, you will need to pass the whole number like +91-91xxxxxxxx then the API will return the leads details.
Thank You,
Satyam Kumar.
