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

Check if user exists in office 365

Hi,

 

I can't get the flow to work properly. I want the flow to check if there is an account the searchform

 

If I enter an account that I know exists the flow choose the "no"-path and if I enter a fake account the flow don't even runt the last step

 

Skärmklipp.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
v-alzhan-msft
Community Support
Community Support

Hi @toblea ,

 

You should refer to screenshot below to create the flow:

1.png

The length expression in the Condition as below:

length(body('Filter_array'))

 

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

6 REPLIES 6
efialttes
Super User
Super User

Hi!
"if I enter a fake account the flow don't even runt the last step"
You mean flow does not even execute the 'Apply to each'?
One option is to activate error management
https://medium.com/@mark_stokes/building-error-handling-into-your-microsoft-flows-83c6e08b83dd
Hope this helps


Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Sorry, my English is not the best. I get green status on last step but step inside it is ”grey” No status at all

Hi again
"if I enter a fake account the flow don't even runt the last step"
I believe this means 'Apply to each' was executed zero times because the array you assigned to its input is empty... i.e. no result found. If N results found, 'Apply to each' is executed N times
Hope this helps


Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



v-alzhan-msft
Community Support
Community Support

Hi @toblea ,

 

You should refer to screenshot below to create the flow:

1.png

The length expression in the Condition as below:

length(body('Filter_array'))

 

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.

OMG, You made my day! 😄 It works, THANK YOU!

This is Excellent solution. Complete my day on a positive note 🙂

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Users online (2,714)