web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details
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!

I have the same question (0)
  • 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 736 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 396 Moderator

#3
Power Apps 1919 Profile Picture

Power Apps 1919 339

Last 30 days Overall leaderboard
Loading complete