On fetch return error 0x80040203

-2

I'm trying to select the first 10 records "new_region" in MS Dynamical CRM

"<fetch mapping= ""logical"" count=""10"">"+ 
"<entity name='new_region'>"+ 
"<attribute name='new_regionid'/>"+ 
"</entity>"+ 
"</fetch>"+

Error:

<code>0x80040203</code>
<description>entity</description>
<type>Platform</type>

Please, help me!

dynamics-crm-2011
asked on Stack Overflow Nov 25, 2014 by Evgeny Ivanov

1 Answer

0

Try this

string getRecords = @"<fetch mapping= 'logical' distinct ='true' count='10'>
                                 <entity name='new_region'>
                                  <attribute name='new_regionid'/>
                                   <order attribute = 'new_name' descending = 'false'/>
                                  </entity> 
                                   </fetch>";
answered on Stack Overflow Nov 25, 2014 by Srinivas Hsk • edited Nov 25, 2014 by Srinivas Hsk

User contributions licensed under CC BY-SA 3.0