I'm trying to create a flow based on the "Forward emails with and without attachment from Office 365" template in order to forward emails to a specific teams channel. This works fine, as long as I'm not specifying any specific recipient address in the trigger but stops working if I want to differentiate the recipient, the original mail was sent to. Any idea how to get this one fixed?
If you could provide an expanded screenshot of your Flow and steps, and of any detailed error messages you're receiving we could likely better assist you.
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
Hi @Stas ,
Do you mean that you want to filter the incoming emails based on the “To” field?
According to your description, I have started the flow from the template, setting To field as my own email address.
However, as you mentioned, the flow won’t be triggered once To field is filled with certain email address.
I will do more test and try to involve more resources into this issue, will back to you once I got any updates.
Hi @v-yamao-msft, this is exactly what I'm talking about. Below is the screenshot of the simplified flow. It's working as long as the "To" filed is not set. When "To" field is filled with an email address, the flow is not triggered at all, so no exceptions or errors occur.
Hi @Stas ,
Could you try again with this issue?
I have made another test and it seems to be working fine now.
Whenever an email arrives, if the email address I specified in the To field contains in the email addresses to which the email was sent, the flow will be triggered successfully.
If the issue still exists, please feel free post back.
Hi @v-yamao-msft, unfortunatey, I'm getting the same result. Everything works fine, as long as "to" is not set und stucks, when set. The address I want to use is an alias. Could this cause the issue?
Hi @Stas ,
Thanks for updating with more details.
The alias you are using might be the cause.
You should input an email address but not an alias. I am using an email address and it is working fine.
From the doc we know that, To property should be “Trigger a flow based on the address to which an email was sent. This property can be useful if you receive email that was sent to different email addresses in the same inbox”.
Please check the doc at here:
Hi @v-yamao-msft, thanks for the reply. But wouldn't be an alias exactly that, what is mentionend in the documentation "... different email addresses in the same inbox..."? Obviously, there is no option in Office 365 other, than creating an alias to route several email addresses to one mailbox.
Hi @Stas ,
Thanks for updating.
But I am afraid that it is email address that is required in the To field but not an alias.
Hi, @v-yamao-msft, just to make sure I'm understanding you correctly.
Having one Office 365 mailbox for firstname.lastname@example.org user / email address and one alias email@example.com pointing to the same mailbox, I'm not able to filter messages sent to the firstname.lastname@example.org email address. Is this right?
Fill out a quick form to claim your user group badge now!
We've given our badges an overhaul and also added some brand new ones!
Learn how to build the business apps that you need.
Find out where you can attend!
Watch & learn from the Power Automate Community Video Gallery!