Skip to main content

Notifications

Power Automate - General Discussion
Answered

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

(0) ShareShare
ReportReport
Posted on 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
    bcanfield83 56 on at
    Re: Add Column To HTML Table (Within Apply To Each Loop)

    Thank you!

  • Verified answer
    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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,636

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,942

Leaderboard