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
Dual Super User


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

Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (1,649)