Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 79901

Filter for fields that may have spaces via Web API

$
0
0

Hello,

 I'm trying to get customer details based on his telephone number via WEB API

The following example is successful because the number in CRM is formatted with spaces:

GET /api/data/v9.1/contacts?$filter=contains(mobilephone, '+41 12 345 67 89')&$select=fullname

 The problem is that the numbers doesn't have a fixed format.. sometimes they are +41123456789 and some times they have spaces in between. All combinations are possible.

 Do you know how should I format my filter to include all format possibilities?

Thank you,

Mihai


Viewing all articles
Browse latest Browse all 79901

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>