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

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

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