cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jpot125
Frequent Visitor

Add new Office 365 User to Sharepoint list

I'm trying to add new Office 365 users to a SharePoint List. If the User is not in the list it needs to be added in. I have 2 issues. 

1. How can I get All Office 365 Users where Account Enabled = true.

2. Some existing users don't have a business phone (business phone is an array) and for some reason they are being added in twice. I'm not sure why since they already exist in the list I thought the filter array and condition would skip over them. 

Can you see any problems with the following flow?

Flow1.jpgflow2.jpg

1 ACCEPTED SOLUTION

Accepted Solutions
v-alzhan-msft
Community Support
Community Support

Hi @jpot125 ,

 

You could add a Filter Array under the Get users action as my screenshot below:

1.png

 

Best regards,

Alice       

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Brad_Groux
Community Champion
Community Champion

You'll need to Add a condition to a flow in conjunction with the Apply to Each to check or verify if users or records exist.

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

 

v-alzhan-msft
Community Support
Community Support

Hi @jpot125 ,

 

You could add a Filter Array under the Get users action as my screenshot below:

1.png

 

Best regards,

Alice       

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

how do you get in filter array 2 user principle name from out as a function? 

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.

Power automate tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Users online (2,283)