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

Aggregate FetchXML against WebAPI fails

$
0
0

Hi,

The following fetchXml works fine against OrgSvc:

<fetch top='50' aggregate='true' ><entity name='account' ><attribute name='cf_customerclassification' alias='classification' groupby='true' /><attribute name='cf_segment' alias='segment' groupby='true' /><link-entity name='peikko_memo' from='peikko_account' to='accountid' link-type='inner' alias='account' ><attribute name='peikko_date' alias='quarter' groupby='true' dategrouping='quarter' /><attribute name='createdon' alias='cnt' aggregate='count' /><filter><condition attribute='ownerid' operator='eq' value='xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' /><condition attribute='peikko_date' operator='in-fiscal-year' value='2017' /></filter></link-entity></entity></fetch>


I'm porting all the scripts to use WebAPI instead of REST+SOAP. When the same fetchxml is executed against WebAPI, I get this error message:

The property provided was of type System.Int32, when the expected was of type System.DateTime

Anyone had the same problem?

Thank you,
Laszlo


Viewing all articles
Browse latest Browse all 46379

Trending Articles



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