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

Mail alias in Flow not recognized

I tried to use a mail alias for my office 365 account in Flow.

 

Example: The mail account would be john.doe@flowtest.com, and the alias jd@flowtest.com.

Now I would like to create a flow that only starts an action when a mail is sent to jd@flowtest.com.

 

However, the "To" field in the Flow mail action or also in the condition only uses the full john.doe@flowtest.com.

 

Any ideas how to make use of a mail alias in Flow?

 

Thanks, Bernhard

14 REPLIES 14
Highlighted
Community Support
Community Support

Re: Mail alias in Flow not recognized

Hi @Bernhard,

 

Which Email action you used?

Office 365 Outlook

Office 365 Outlook, or something else?

Would you please share your flow running details here for further investigation?

Troubleshooting a flow

Regards,

Michael

 

 

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
New Member

Re: Mail alias in Flow not recognized

Hi @v-micsh-msft/Michael,

 

Thanks for your reply! Yes it is the Office 365 Outlook action. The flow itself does not fail, the action works fine.

There are actually two issues:

 

My first approach was in the Office 365 Outlook action to enter the alias (e.g. jd@flowtest.com) into the "to" field.

When I sent a mail to this address it will of course appear in my Outlook inbox. But the flow will not start as it does not use this alias as a trigger. By the way, "flowtest" would be the Office 365 tenant here. It seems although the alias is used to send mails to, in the inbox or by flow "To" appears as "john.doe@flowtest.com". Therefore, the trigger does not start the flow.

 

My second approach was to use the full mail address in the Flow Outlook action. Afterwards I added a condition where I added "To contains jd@flowtest.com". Same here, the condition check will result in "false", so again it seems that the "To" field contains the full mail address instead of the alias.

 

We would like to use one Office 365 account with three aliases to add SharePoint list items into three different lists (one for each country). Depending on the alias used the list item is created in the list for Germany, Austria or Switzerland.

(by the way - using this as a workaround for the missing functionality in SharePoint lists to enable mailing to a list. The customer used this in SharePoint 2013, now we have to find a replacement for this).

 

Regards, Bernhard

Highlighted
Community Support
Community Support

Re: Mail alias in Flow not recognized

Hi @Bernhard,

 

The To field should use the Alias.

In addition to the alias, have you tried to enter the john.doe@flowtest.com as the input to check?

Besides, if the email address is within the organization, we could just enter the full name of the person, and there would be dropdown to match Email Address as below:

57.PNG

Just choose the corresponding item listed should work here.

For the Email address that is out of your organization, type the full mail address (Alias) should work.

Let me know if this works.

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
New Member

Re: Mail alias in Flow not recognized

Hi @v-micsh-msft,

 

sorry for the late answer - long weekend 😉

 

Actually the To field does not recognize the alias. If I use it and a mail is sent to the alias, the flow is not started. That's my main problem here. I will try to solve it differently for the customer now not trying to use an alias.

 

But thanks for your help anyway!

Regards, Bernhard

Highlighted
Frequent Visitor

Re: Mail alias in Flow not recognized

Hi,

 

I have exactly the same issue. 

 

Regards,

Graham

Highlighted
Frequent Visitor

Re: Mail alias in Flow not recognized

 

 

 

Alias doen't trigger flowAlias doen't trigger flowMy email address triggers flowMy email address triggers flow

 

Regards,

Graham

Highlighted
Frequent Visitor

Re: Mail alias in Flow not recognized

Hi

 

I created a workaround to make such flow possible:

 

First, you have to create folder/subfolder for each alias.

Second, using Mail settings create rules; I created a rule for each alias (partialy suggested here https://365lab.net/2014/01/02/quick-tip-mail-flow-rules-for-alias-email-addresses-in-exchange-online... but that scenario was not possible to implement in my case) using Settings -> Mail -> Mail/Automatic processing/Inbox and sweep rules,

with condition: message contains in the message header (your alias)

and action: move the message to folder (your folder/subfolder).

 

Then, we can pinpoint Flow to the subfolder where the message from above rule lands and voila!, it's working.

 

EDIT: Of course Flow will still not recognize alias in the [To] fields, so this condition should be removed on the Flow side (as it was processed pre-Flow).

 

But I have to say, it is unfortunate that Flow has so many limitations; one would think Mail/Exchange rules and access to available details (like Message-Header data) should be just simply copied from Mail settings.

 

Jacek

 

 

Highlighted
Frequent Visitor

Re: Mail alias in Flow not recognized

EDIT:

 

Unfortunately it does not work (Mail/Exchange rules) when email is sent FROM Outlook/Office365 - it seems Microsoft replaces alias with main address on the fly and it is not included in the header. 😞

 

Highlighted
Frequent Visitor

Re: Mail alias in Flow not recognized

Hi,

 

Is the outlook 365 email alias issue on the flow/azure logic apps fix list?

 

Regards,

Graham

Highlighted
Frequent Visitor

Re: Mail alias in Flow not recognized

Hi

It is not a Flow/Azure logic problem, it is an Exchange Online behaviour; it simply replaces on the fly alias address with connected account address, so nowhere in the message header there is an alias name used, or at least it works that way within one organization - I had no problem with Account Mail Rules or MailFlow Exchange Rules working perfectly when email was sent from Google to the alias..

I kind of created a workaround:

Distribution list with one member - it is the only solution that works the same way and is simply managable.

I just did not want to create as many email accounts as aliases - it's againt how IT should work 🙂



There are still many early issues with Flow, though, like you can't set "Reply-To" header info, only "From" (which is depending on users being WITHIN domain and Exchange). I would also love for Flow to be able to also search the full email headers, not only those few fields it has right now, so I would not have to use MailFlow Exchange Rules in other flows.
But is is outside of this thread.

Thanks
Jacek

Highlighted
Frequent Visitor

Re: Mail alias in Flow not recognized

I have the same issue.

I need to create well over 100 aliases for one mailbox and make Flow put mail attachments in a Sharepoint folder named according to the alias used (I would like to create an email dropbox for department scanners that forwards attachments to the right SharePoint Online folder).

 

I'm not sure that is an Exchange On Line problem, in the raw email text I can find the right "To:aliasnumberx@domain.cc" row, but Flow parser populate the "To:" field with primary address. That's a bug, in my opinion. At least, OWA behaves in the expected way.

 

LG

Highlighted
Frequent Visitor

Re: Mail alias in Flow not recognized

@v-micsh-msft could you please help me? Is Trigger behaviour buggy or the expected result? I need to create a flow that dinamically put attachment in the right SP directory, based on the destination address.

 

TIA

 

LG

Highlighted
New Member

Re: Mail alias in Flow not recognized

Any update about this?

Highlighted
New Member

Re: Mail alias in Flow not recognized

The only way i fount was "Export email" and there search the string To: MyAlias@myDomain.com

it is not possible to parse the Message/Internet Header

(the first TO: is the primarymailaddress from the Mailbox) 

 

2019-11-05_20-51-03.jpg

 

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (10,130)