Skip to main content
Community site session details

Community site session details

Session Id : bjUuh185mLWyWq16ilPHKc
Power Automate - General Discussion
Answered

Add Column To HTML Table (Within Apply To Each Loop)

Like (0) ShareShare
ReportReport
Posted on 17 Apr 2023 18:05:24 by 56

Hi All,

I'm struggling with what seems like a relatively easy solution. Ultimately, I'm trying to create a HTML Table containing 3 columns:

  • User
  • Job Title
  • Manager

The User and Job Title columns are being pulled from the Azure AD Get group members action: 

 

Azure_AD_Members_HTML_Table_Part_1.PNG

 

However, this does not include the Manager value for each of the users assigned to the specified AD Group. Thus, I added an "Apply to each" loop which pulls each user's manager via the Get manager (V2) action:

 

Azure_AD_Members_HTML_Table_Part_2.PNG

This works as expected - but what I'm trying to do from here is add a "Manager" column to the HTML table and insert the manager value (for each user). 

I'm sure it's a lot simpler than I'm making it out to be, so any help is appreciated. Thanks!

  • bcanfield83 Profile Picture
    56 on 28 Apr 2023 at 11:30:31
    Re: Add Column To HTML Table (Within Apply To Each Loop)

    Thank you!

  • Verified answer
    v-xiaochen-msft Profile Picture
    on 18 Apr 2023 at 02:19:51
    Re: Add Column To HTML Table (Within Apply To Each Loop)

    Hi @bcanfield83 ,

     

    I made a sample for you.

    vxiaochenmsft_0-1681784360912.png

    {
    "User":@{items('Apply_to_each')?['displayName']},
    "jobTitle":@{items('Apply_to_each')?['jobTitle']},
    "ManagerName":@{outputs('Get_manager_(V2)')?['body/displayName']}
    }

     

    Best Regards,

    Wearsky

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete