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

WebApi.retrieveMultipleRecords with like operator for Integer field

$
0
0

Hi,

Is it possible to write query in client side that contains 'like' operator for Integer field.
I'm trying to write in WebApi.retrieveMultipleRecords, and to send fetchXml parameter:
<fetch mapping="logical"> 
<entity name="lead">   
<attribute name="fullname" />   
<filter type="and">   
  <condition attribute="new_auto_id" operator="like" value="%1231%" /> 
  </filter></entity>
</fetch> 

 The field new_auto_id is integer type.

The response is:

{"error":{"code":"0x80040203","message":"An exception System.FormatException was thrown while trying to convert input value '%\\1231\\%' to attribute 'lead.new_auto_id'. 
Expected type of attribute value: System.Int32. Exception raised: Input string was not in a correct format."}}

Any idea?
Thanks


Viewing all articles
Browse latest Browse all 79901


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