It took awhile, but I finally got the correct aggreagtion for my call, but now I want to do an Order By Desc of the Count aggregate, but I'm getting an error:
Hi @Dlabar ,
It seems that using the fields generated by the aggregation as the basis for sorting is not supported.
Order by field here can only be sorted according to the fields existing in Leads entity.
Count is the value generated during the execution of this action, so it cannot be used during execution.
Not sure, I usually create the query in the XrmToolBox's FetchXmlBuilder tool, it has an option to convert it to the Power Automate Parameters:
Also, you should probably be asking this as a question, and not add as a comment to another.
Keep up to date with current events and community announcements in the Power Automate community.
A great place where you can stay up to date with community calls and interact with the speakers.
Check out the latest Community Blog from the community!