web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Add members to new teams
Power Automate
Answered

Add members to new teams

(2) ShareShare
ReportReport
Posted on by 33

Hi

I am a teacher and create 10+ new class teams per semester. What I would like to create is a flow to add members to the new teams. 

Ideally it would trigger when a new Excel file is dropped into a folder in OneDrive. I can easily create tables for each class with their email address and TeamID as the columns. 

I have tried several things but have failed so far. 

Can someone please help with the setup of this flow?

Thanks

Categories:
I have the same question (0)
  • MrGibbs Profile Picture
    33 on at

    This is my current approach.

    MrGibbs_0-1720770407042.png

     

     

  • Sayan Profile Picture
    818 Moderator on at

    Hey @MrGibbs 

     

    As I am using Corporate Laptop, so I don't have to Access to MS Team, so I am unbale to create the Flow and Test it. Just Created the Template.

     

    You can refer the following solution hope it will work: 

     

    Create the Flow:

     

    • Select the trigger "When a file is created in a folder" for OneDrive.

    Get the File Content:

    • Add an action "Get file content" to read the Excel file.
    • Use the file identifier from the trigger.

    List Rows Present in a Table:

    • Add an action "List rows present in a table" from the Excel connector.
    • Choose the location, document library, file, and table where the email addresses and Team IDs are stored.

    Apply to Each:

    • Add an "Apply to each" control to loop through each row in the Excel table.
    • Use the value from the previous step.

     

    • Add Members to Teams:

      • Inside the "Apply to each" loop, add an action "Add a member to a team" from the Microsoft Teams connector.
      • For the Team ID, use the corresponding column from the Excel table.
      • For the User ID, use the email address from the Excel table

     

    Sayan_0-1720770810215.png

     

     

    Sayan_1-1720770828100.png

    Provide the Table Name Manually.

     

    Hope It will work!

     

    ------------------------------------------------------------------------------------------------------------------------------

    If my suggestion helps you, please give it a Thumbs up 👍  and Mark as a Solution ✔️. It motivates to solve more problems.

     

    Thanks,

    Sayan Patra

    RPA Developer

     

  • MrGibbs Profile Picture
    33 on at

    Thanks @Sayan 

    This solution feels like it is the closest I have been to a working flow. This is the error I am recieving:

    MrGibbs_2-1720775558737.png

    MrGibbs_3-1720775576002.png

     

     

     

  • Sayan Profile Picture
    818 Moderator on at

    hey @MrGibbs 

    can you please share the Advanced Properties of List of Rows Present in a Row and The Foreach.

     

    Thanks

    Sayan Patra

    RPA Developer

  • MrGibbs Profile Picture
    33 on at

    List of Rows Present in a Row

    MrGibbs_0-1720780610429.png

    The Foreach.

    MrGibbs_2-1720780710287.png

     

    MrGibbs_1-1720780676955.png

     

  • Sayan Profile Picture
    818 Moderator on at

    Hey @MrGibbs 

    can you please delete the Last to Actions and Run the workflow and please share the Raw Outputs.

    In "List Of Rows" what input parameters you have given I am unable to see.

     

    ------------------------------------------------------------------------------------------------------------------------------

    Thanks,

    Sayan Patra

    RPA Developer

  • MrGibbs Profile Picture
    33 on at

    Hi @Sayan 

    After deleting these two from List rows present. 

    MrGibbs_0-1720818025034.png

    List_rows_present_in_a_table - Raw Output

    MrGibbs_1-1720818188525.png

     

  • Sayan Profile Picture
    818 Moderator on at

    Hey @MrGibbs 

     

    Is the problem Solved or not.

    if the issue is not solved, please share the current error.

     

    Thanks,

    Sayan Patra

    RPA Developer

  • MrGibbs Profile Picture
    33 on at

    Sorry @Sayan 

    I am recieving the same error

    MrGibbs_0-1720818614866.png

     

  • Sayan Profile Picture
    818 Moderator on at

    Hey @MrGibbs 

    can you please share the screenshot of excel file?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 785

#2
Valantis Profile Picture

Valantis 669

#3
Haque Profile Picture

Haque 563

Last 30 days Overall leaderboard