i'm developing a plugin (asp page) who should get as parameter Phone Number and retrieve the matched client in CRM 2013
.
the phone number is clean from punctuation marks and spaces for example:
PhoneNum = Replace(PhoneNum, "-", "")
Dim query As New QueryExpression() With
{
.Distinct = False,
.EntityName = "contact",
.ColumnSet = New ColumnSet("contactid", "fullname")
}
Dim queryCriteraFilter1 As New FilterExpression()
queryCriteraFilter1.FilterOperator = LogicalOperator.Or
queryCriteraFilter1.AddCondition(New ConditionExpression("telephone1", ConditionOperator.Like, {PhoneNum}))
My question is how to format the field telephone1 same as PhoneNum in order to match the exact record.
any help would be appreciated