web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / CDS CE connector and A...
Power Automate
Unanswered

CDS CE connector and Aggregate queries

(0) ShareShare
ReportReport
Posted on by 84

Hi, is it possible to retrieve aggregated data with the CDS Current Environment / List Records action?

Trying something super simple like:

 

 

<fetch aggregate='true' >
 <entity name='account' >
 <attribute name='accountcategorycode' alias='accountcategorycode' groupby='true' />
 <attribute name='revenue' alias='revenue' aggregate='max' />
 </entity>
</fetch>

 

 

 

 

Which is a very valid query, but running the flow gives me:

 

Key property 'accountid' of type 'Microsoft.Dynamics.CRM.account' is null. Key properties cannot have null values. 

 

Of course I don't want to add the accountid attribute, as it would prevent me from getting the aggregation I want.

Categories:

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 445

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 300

Last 30 days Overall leaderboard