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 / Count the number of ro...
Power Automate
Answered

Count the number of rows after Filter Array

(0) ShareShare
ReportReport
Posted on by 156

NorthernChuck_0-1618430684528.png

 

How does one count the number of rows? So if this was powershell, $filter_array.count
OR
Maybe someone has a better way of doing this....  
Step 1, Find the file I"m looking for, in this case token.txt
Step 2, load that file's contents, then shove into string variable

Step 3, create HTTP Post to API
Step 4, Receive response with new token
Step 5, Delete File from Step 1

Step 6, Create new File with the same name, token.txt, and add the new token received from Step 4. 

This ran fine on pass 1. I triggered it again, thinking it would read the new file and it failed ... even if it had the same name... all I really want to do is pop in the refresh token in that text file. That's why I'm muckering with a find files, filter array thing.... I figure if I can find the name dynamically (token.txt) it won't error out on me on the next pass....

Thank you all for your help 🙂 Cheers

 

Categories:
I have the same question (0)
  • Verified answer
    Paulie78 Profile Picture
    8,422 Moderator on at

    Add a compose action after your filter array and use an expression like:

    length(body('Filter_array'))

     

  • NorthernChuck Profile Picture
    156 on at

    (facepalm) TY @Paulie78 !

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 77 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 68

#3
Expiscornovus Profile Picture

Expiscornovus 56 Most Valuable Professional

Last 30 days Overall leaderboard