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.
Best Regards,
Thanks for the reply @v-bacao-msft . Is it documented anywhere that this is not supported?
I am having this same issue. @Dlabar or @v-bacao-msft can you please provide appropriate query syntax for groupby + orderby. I have attached my current syntax.
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.
User | Count |
---|---|
89 | |
37 | |
26 | |
13 | |
13 |
User | Count |
---|---|
127 | |
54 | |
38 | |
24 | |
21 |