Showing results for 
Search instead for 
Did you mean: 
Not applicable

Get all IDs from SharePoint and their respective comments, with name as a table header

I have a flow that is semi-working, however not finished as I'm completely stuck on this problem.


This flow selects all the data from a SharePoint list(id, name, comment). And then sends the email to me, in the following form.




{"id":3.0,"Name":"john doe","Comment":null}]





Preferred Outcome:


Ideally, I want to send an email where it is grouped by user ID and the Name as a table header, along with the all of that user's comments. Something like:



john doe







I have been pondering for a couple of hours, but nothing yet has been fruitful. Any help, is more than appreciated.


Stay safe,


Community Champion
Community Champion

You can use Create HTML table to convert output to HTML and then use in the email.




For Grouping, follow below steps...


  1. Run a loop and gather all Unique records in a array variable. In your case it seems ID is the column.
  2. Then Run a loop on that array. Inside this loop use select to filter output of GetItems by ID column from array.
  3. Use Convert to HTML on select output and use that within email.


Please Like and Mark this as Answer if it resolves your Issue.

Power Automate Community

Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022- Season 2 has kicked off!

Users online (3,045)