1
Vote

Issue with XrmServiceToolkit.Soap.Fetch

description

In version 2.2.1 I experienced an issue while sending below FetchXMLxml using XrmServiceToolkit.Soap.Fetch which is making a summation on all the records under specific job excluding current record:

<fetch distinct='false' mapping='logical' aggregate='true'> <entity name='mn_payments'>
    <attribute name='mn_amount' alias='amount_sum' aggregate='sum'/>
    <filter type='and'>
        <condition attribute='statecode' operator='eq' value='0' />
        <condition attribute='mn_jobid' operator='eq' value='{344A56BF-9434-E611-80F7-C4346BDD8131}'/>
        <condition attribute='mn_paymentsid' operator='ne' value='{A26909B3-9534-E611-80F7-C4346BDD8131}'/>
    </filter>
</entity></fetch>
I amended deserialize function and it resolved the issue. Please see the changed file attached:

file attachments

comments