Hi all,
I want to use the output of "list rows present in a table" to send e-mails, as below.
But, I can not select the rows under dynamic content... the output rows are not listed....
Any hint is welcome
Many thanks @rzaneti Hope to get time to try this one tomorrow 🙂
Hi Steve,
In my example I simply added a piece of dynamic content from the excel action.
In my experience this is often times a good way to start debugging since you can put any datatype into the compose block and thus usualy all the dynamic content will show up when you try to put it inside.
So it contained simply 'column1' from the 'List rows present in a table'
Thanks for you feedback ! How does the "compose block" lock like pls? What do I need to do?
Hi @stevecgn12 ,
It happens because, your output is organized in an array of objects, it means, a list of rows containing individually a property for each column. If you want to access an specific row, you will need to isolate it from your array by filtering it (you can use the Filter Query from the 'List rows present in a table' action or the 'Filter array' action); if you want to include in your email a set of rows, you will first need to organize its data in another way (maybe in a text, or a HTML table).
If you know the row position (for example, let's assume that you want to access the 4th row of the table below), it is possible to access it directly with expressions, by using brackets and passing the index (in this case, the index will be 3, as the count starts in zero):
Expression: outputs('List_rows_present_in_a_table')?['body/value'][3]
Output:
Note: as mentioned before, each row is stored as an object, and each of the columns is an individual property, as you can see in the image above.
I recently wrote a blog post about how to read data from Excel, which explores the alternatives mentioned above: http://digitalmill.net/2023/07/19/reading-data-from-excel-tables-in-power-automate/
Also, feel free to provide more context about how do you want to organize its data in your email and we can help you to adjust your flow to reach that 🙂
Hi @stevecgn12
In Dynamic content, try searching name of the column exist in the excel file. For example, in the below screenshot, column 'Name' has been searched:
If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.
Thanks
Hi Steve,
It should be available as dynamic content - maybe it's due to the contenttypes not being a match.
Perhaps try initializing a variable at the start of your flow and filling it with data from excel - or using a compose block as in my example below.
If this solves it for you, please mark as solved if not let's figure it out further together
stampcoin
31
Churchy
20
Michael E. Gernaey
18
Super User 2025 Season 1