Quantcast
Channel: Forum CRM Development
Viewing all articles
Browse latest Browse all 1000

operator="in" , Fetch Xml, MS CRM 2011

$
0
0

hi,

i have a guid's string array.

ex: string[] recordGuids;

i want to use this in fetchxml by using condition operator "in".

i have tried this below code but no success ("The remote server returned an error: NotFound.").

            var fetchXml = @"<fetch mapping='logical'><entity name='annotation'><attribute name='filename' /><filter><condition attribute='objectid' operator='in'>"+"<value>" + recordGuids + "</value>" +"</condition>"+"</filter>"+"</entity>"+"</fetch>";

when i debug and check the query, that was something like this( which is wrong query ).

<fetch mapping='logical'><entity name='annotation'><attribute name='filename' /><filter><condition attribute='objectid' operator='in'>

<value>System.String[]</value>

</condition>

</filter>

</entity>

</fetch>


can anyone give me an idea to retrieve set of records by using condition operator "in" by passing string array.


Thanks and Regards. Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.



Viewing all articles
Browse latest Browse all 1000

Trending Articles



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