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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / how to get count of re...
Power Automate
Unanswered

how to get count of records that are returned

(0) ShareShare
ReportReport
Posted on by

This is my List Records action and I’ve named it as List records.

 

image.png

 

I am getting the list records as below

image.png

I wanted to have the count of data that is returned from the above query in the values.

Please suggest me on how to do that. i have tried 

 

length(body(‘List records’)?[‘value’])

length(body('List_records')?['value'])

 

In the condition to check but it always returns false.

 

I have tried with aggregation transformation which works fine from FetchXML and does not return values in MS flow 

Categories:
I have the same question (0)
  • MJain Profile Picture
    2,450 on at

    Hi @Anonymous ,

     

    Considering your scenario this only is retrieving count of distinct columns, rather checking on the length checking the cds_xxxxx_count should give you exact number of records.

     

     

    Thanks

  • Verified answer
    v-bacao-msft Profile Picture
    on at

     

    Hi @Anonymous ,

     

    Please try to use the following expression:

    length(body('List_records')?['value'])

    203.PNG

    Feel free to let us know if you have any other questions.

     

    Best Regards, 

  • Community Power Platform Member Profile Picture
    on at

    It worked @v-bacao-msft ,Thank you

     

     

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard