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

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

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.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (4,574)