cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
MVP

How to perform and orderby descending of an aggregate for a CDS List action?

image.png

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:

 

{
"status": 400,
"message": "The query node SingleValueOpenPropertyAccess is not supported",
"source": "Env.crm.dynamics.com",
"errors": [],
"debugInfo": "clientRequestId: 3ffb4d54-6610-4cb2-bbe3-0e9a93861ca3"
}
2 REPLIES 2
Highlighted
Community Support
Community Support

Re: How to perform and orderby descending of an aggregate for a CDS List action?

 

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,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
MVP

Re: How to perform and orderby descending of an aggregate for a CDS List action?

Thanks for the reply @v-bacao-msft .  Is it documented anywhere that this is not supported?

Helpful resources

Announcements
FirstImage

Microsoft Ignite 2020

Check out the announcement of Power Platform content at Microsoft Ignite!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (8,730)