cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
lhastrup
New Member

Multiple users with O365 "Get User Profile V2"

Hi,

I'm creating a flow that has to add multiple users to a team in Microsoft Team.

In order to add the users i need the ID of the users that has to be added, which is why i use the "Get User Profile V2" from O365 users.

 

I trigger my flow with 1 parameter called Members, where my input are as such.

user1@domain.com, user2@domain.com

 

I then create an array with the users, because "apply to each" needs an array instead of string. 

  

Afterwards i use the "apply to each" where i specify my Array. 

Lastly i use the "Get User Profile V2" which points to the "current item" (see attachment) 

 

However i get following error: 

{"error":{"code":"ResourceNotFound","message":"User not found",
It seems it doesnt pass each user in correctly

Any help would be greatly appreciated

 

Thanks in advance

 

https://i.imgur.com/0RE08Ro.png

https://i.imgur.com/sdVFLcs.png

1 ACCEPTED SOLUTION

Accepted Solutions
Expiscornovus
Super User II
Super User II

Hi @lhastrup,

 

From your screenshot it looks like it's only recognized as one value. Can you try and initialize your Array variable like this:

createArray('user1@domain.com', 'user2@domain.com')

View solution in original post

1 REPLY 1
Expiscornovus
Super User II
Super User II

Hi @lhastrup,

 

From your screenshot it looks like it's only recognized as one value. Can you try and initialize your Array variable like this:

createArray('user1@domain.com', 'user2@domain.com')

View solution in original post

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Users online (52,940)