cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Counting rows in excel table

Hello I have a flow currently that creates a table in an email when an item is created in SharePoint. I want to get the value of the number of rows to enter in  my email. How do I go about doing that?

 

flow1113.PNGflow13.PNG

2 ACCEPTED SOLUTIONS

Accepted Solutions
Paulie78
Super User
Super User

Do you have an apply each that you are not showing in your screenshot? Please try to take a screenshot of the whole flow as one. Instructions on my blog here:

https://www.tachytelic.net/2020/10/screenshot-entire-flow-power-automate/

 

If your problem is fixed, can you mark it as answered and then post a new question about your 5 emails? It should be an easy fix.

 

View solution in original post

Anonymous
Not applicable

Yes I did have an apply to each. Thanks for the screen shot instructions too

View solution in original post

6 REPLIES 6
Paulie78
Super User
Super User

numberOfRows.PNG

Use a compose step after your list rows action. Then use the following code:

length(outputs('List_rows_present_in_a_table')?['body/value'])

Use the output of your compose where you want to show the row count.

 

Please...

If I answered your question Accept it as a solution ✔️ 

If I helped you out, please give me some Kudos 👍

Thanks 😙

Anonymous
Not applicable

Thank you, that did work. Is there a condition so I will only get one email? When I ran this I got 5 emails, one for each row I am assuming?

 

Thank you

Paulie78
Super User
Super User

Do you have an apply each that you are not showing in your screenshot? Please try to take a screenshot of the whole flow as one. Instructions on my blog here:

https://www.tachytelic.net/2020/10/screenshot-entire-flow-power-automate/

 

If your problem is fixed, can you mark it as answered and then post a new question about your 5 emails? It should be an easy fix.

 

Anonymous
Not applicable

Yes I did have an apply to each. Thanks for the screen shot instructions too

the list row just list maximum of 256 rows. If you go into settings, it can extend more but not exceed 5000. Can we have another ways without using List Rows ?

Yeah, I just ran into the same problem. all these threads keep saying use compose. Which works fine, but it only spits out 256 rows. How do we get a full easy method of row count? Where in the setting do you change it? I couldn't find it. 

 

I would prefer not writing up a full for each loop just to get a count. the file we have is fairly big, 24,000 rows roughly. So, we want to build a flow, but only test the first few rows initially. 

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (2,232)