Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Create a condition that checks to see if an email is an o365 user versus just smtp

I have a flow that checks a shared mailbox.  when an email comes in I use get profile v2 to add the user's department, phone and manager.  This works great for internal O365 emails, but this mailbox also gets smtp email from non O365 users.  The error returned is a 404.  and it causes intermittent failures.


I have tried a number of conditions, and tried to write an expression, but no luck.  Anyone else having this issue?

Dual Super User II
Dual Super User II


Did you try to use split(from,'@') [1]

This will get the domain part and then you can compare it against your domain before performing any logic

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here

Helpful resources

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (3,385)