Showing results for 
Search instead for 
Did you mean: 
New Member

Flow condition not picking up the 'TO' email address based on a Shared Mailbox Alias



Will try to keep this simple. 


Trying to achieve: 

A single Shared Mailbox - has multiple aliases i.e. 


A  automated system sends a report to an e-mail address for each client's respective e-mail addresses  (i.e. the Aliases) 

e.g. :
SYSTEM SEND MAIL to CLIENT1@DOMAIN.COM -> Flow picks up Alias and Drops attachments into CLIENT1 SharePoint Document Library

SYSTEM SEND MAIL to CLIENT2@DOMAIN.COM -> Flow picks up Alias and Drops attachments into CLIENT2 SharePoint Document Library


I add the condition to say,  IF CLEINT1 alias, send attachment to SharePoint DOC Library CLIENT1  (and the same for CLIENT2) 


But the Flow fails and says the condition is FALSE.   

My thinking is that the condition disregards the alias and just sees the primary email address for the Shared Mailbox i.e. it only sees and therefore the condition fails.  

To prove this I used the "initialize variable"  for the Dynamic content TO address and ran a test, the TO address shows the primary email and not the alias that I originally sent the email to. 


I guess the question is: Is there anyway to create an expression that ensures it reads the ALIAS email address and not the primary shared mailbox email address?  


I've posted some screenshots with my findings - and can get it to work if I don't use a shared mailbox with aliases.
i.e. If I use my own email address with an alias works - but not on a with a Shared Mailbox. 

Thanks to any one reviewing this!
Note: In this image, the initialize variable I used only so I could see what TO address was being picked up:



Result from Test: 

Community Support
Community Support

Hi @Ad0m,


You could have a try to set the To field in the trigger to, if any match, the trigger will run.

If it could work, you could create two separate Flows for two alias.
Annotation 2020-07-01 144245.jpg


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

Hey @v-litu-msft 


Thanks for coming back. 

I have tried this - I have created 2 flows and made them real simple 

  • When a new email arrives in a shared mailbox --> create file in SharePoint Site/Library

on both flows I add the different alias's in to the TO box (like in your print screen) - Then, when I send an e-mail to either of those aliases, I get the attachment saved to both SharePoint locations. 


Hence why I put the "initialize variable" to capture if the TO field was in fact being picked up - but it seems as though, no matter what I put in the TO field, the result is the same, it only picks up the Shared Mailbox primary email address and not the alias I asked it to.  

(if that makes any sense at all 🤔

Many thanks 


New Member

@Ad0m, did you ever figure this out?  I'm running into essentially the same issue and I'm not having much luck finding any other info on it.

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!

Top Solution Authors
Users online (3,157)