I'm building a flow where I'm pulling a list utilizing "Get Items" and then creating an HTML table. I have done this before without issue, but today my flow is adding an apply to each when I add the fields for my table. How can I avoid the apply to each and still create a table listing all of the results from my get items action? Once these steps are done, I'm just going to pull the table into an email, but since it's buried in an "Apply To Each", I can't even pull my table into the email.
Dear Partner,
You can get the output of action inside apply to each using below expression
outputs('Create_HTML_table_2')
Did I answer your question? Please consider to mark my post as a solution to help others.
Regards,
Mohamed Sanuj Basheer
Hi @kels89,
You can use an array variable and append the results of the individual items to that variable. And use that variable to create the HTML Table outside of the apply to each loop.
Below is an example of that.
1. Add an initialize array variable at the beginning of your flow
2. Add an append to array variable action within the Apply to each loop and use the value - item
3. Create an HTML table outside the apply to each loop
Hope this helps a bit?
Check out new user group experience and if you are a leader please create your group
See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.