cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
skindu
Helper III
Helper III

Add new team member to sharepoint group

Hi...

 

I'm creating a flow so that the new member is automatically added to a sharepoint group, but I get an error.

Whats wrong?

 

 

" Exception of type 'System.ArgumentException' was thrown.
Parameter name: encodedValue...

 

Captura de ecrã 2022-01-17 014133.png

1 ACCEPTED SOLUTION

Accepted Solutions
Expiscornovus
Dual Super User
Dual Super User

Hi @skindu,

 

It looks like you didn't include the membership in the prefix of the LoginName value.

 

Can you try this instead in the body:

{ '__metadata': { 'type': 'SP.User' }, 'LoginName':'i:0#.f|membership|@{outputs('Get_user_profile_(V2)')?['body/userPrincipalName']}' }

View solution in original post

1 REPLY 1
Expiscornovus
Dual Super User
Dual Super User

Hi @skindu,

 

It looks like you didn't include the membership in the prefix of the LoginName value.

 

Can you try this instead in the body:

{ '__metadata': { 'type': 'SP.User' }, 'LoginName':'i:0#.f|membership|@{outputs('Get_user_profile_(V2)')?['body/userPrincipalName']}' }

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

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.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Users online (1,433)