I have a Kaskela's Get Results query that runs on Dynamics 365 Online to calculate the sum of profit (custom field) on all products in a quote.
I then run (in a workflow) an update passing the results of the fetch from Kaskelas Get Results into a currency field on the quote entity. If I return the value as single money, the field stays null. If I return the value as single decimal it comes back as zero.
If I run the exact query through the fetch tester in XRM Tools I get the result (that I need 600) as follows:
<resultset morerecords="0">
<result>
<new_profit_sum formattedvalue="£600.00">600</new_profit_sum>
</result>
</resultset>
Fetch XML Used:
<fetch version="1.0" output-format="xml-platform" mapping="logical" aggregate="true"><entity name="quotedetail"><attribute name="new_profit" alias="new_profit_sum" aggregate="sum" /><filter type="and"><condition attribute="new_activeproducttype" operator="eq" value="100000000" /></filter><link-entity name="quote" from="quoteid" to="quoteid" alias="aa"><filter type="and"><condition attribute="quotenumber" operator="like" value="QUO-01188-L5S0Z2" /></filter></link-entity></entity></fetch>
The quote number in the workflow is passed as a field quoteid into the workflow. For the above purposes testing in the xrm fetch tester tool I put in an actual quote number. I also tried that in the actual Kaskela's fetch and the same thing happens so its definitely not that.
This query used to work ok but stopped working for some reason. I updated to the latest Kaskela's 1.2.0
I have other queries that used to work and now don't.
Any Ideas what could be going wrong?
John
*This post is locked for comments