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 III
Super User III

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 III
Super User III

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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (24,848)