cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
NorthernChuck
Helper III
Helper III

Count the number of rows after Filter Array

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

 

1 ACCEPTED SOLUTION

Accepted Solutions
Paulie78
Super User
Super User

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

length(body('Filter_array'))

 

View solution in original post

2 REPLIES 2
Paulie78
Super User
Super User

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

length(body('Filter_array'))

 

View solution in original post

(facepalm) TY @Paulie78 !

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Kudoed Authors
Users online (3,327)