cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Oskarkuus
Post Prodigy
Post Prodigy

Flow - create team and add members from SP list?

I have a list with two columns

 

Title | Members

Title = team name (text field)

Member = People to become members of the team (Sharepoint Person column, multiple selection allowed)

 

Then i have a flow that is triggered by a button atm (Testing phase)

It gets items from the list

It creates the teams (title as team name)

But then i have problem adding members to it.

 

Anyone able to help?

Se pictures

bp3.png

 

bp2.png

 

bp4.pngbperror.png

1 ACCEPTED SOLUTION

Accepted Solutions
Expiscornovus
Dual Super User
Dual Super User

6 REPLIES 6
Expiscornovus
Dual Super User
Dual Super User

Hi @Oskarkuus,

 

From the screenshot it looks like you are using the Email address for the AAD id field in the add a member to team action.

 

You can use the Get user action to retrieve that id based on the user principal name.

 

Below is an example of such a setup.

 

aadidforteams.png

Oskarkuus
Post Prodigy
Post Prodigy

Thank you. But i am still stuck. I get a new error and tried to do as you did on your picture.

Se pictures.

 

br8.pngbr7.pngbr6.png

Expiscornovus
Dual Super User
Dual Super User

Hi @Oskarkuus,

 

Can you use the TeamMembers field (Medlemmar) instead of the Current Item field in your second apply to each loop?

 

peoplecolumn.png

Oskarkuus
Post Prodigy
Post Prodigy

I still get this error "Request to Azure Resource Manager failed with error: '{"error":{"code":"InvokerConnectionOverrideFailed","message":"Could not find any valid connection for connection reference name 'shared_azuread' in APIM tokens header."}}'."

I only get this error when using either the Office365 connection or the Azure connection. Tried to remove all connections to them and reconnect the connections, but still the same error.

 

 

Expiscornovus
Dual Super User
Dual Super User

Hi @Oskarkuus,

 

@Jay-Encodian has written a good blogpost about this. Can you try one (or both) of these solutions:

https://blog.encodian.com/2020/10/fix-the-request-to-azure-resource-manager-failed-with-error-in-pow...

 

Oskarkuus
Post Prodigy
Post Prodigy

Great, that worked!

Thank you.

Helpful resources

Announcements
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.

New Process Advisor Capabilities carousel.png

Read the blog for the latest news

Read the latest about new experiences and capabilities in the Power Automate product blog.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (3,181)