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?
Solved! Go to Solution.
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.
Best regards,
Mabel
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.
Best regards,
Mabel
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.
Best regards,
Mabel
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:
https://docs.microsoft.com/en-us/flow/email-triggers
Best regards,
Mabel
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.
Best regards,
Mabel
Hi, @v-yamao-msft, just to make sure I'm understanding you correctly.
Having one Office 365 mailbox for stas@mycompany.com user / email address and one alias stas2@mycompany.com pointing to the same mailbox, I'm not able to filter messages sent to the stas2@mycompany.com email address. Is this right?
The above solution will not work if we put a email id in To filed other then that of the user on which the connection is created.
So if we create a connection with abc@microsoft.com and keep To field blank the action will pick up emails send to abc@microsoft.com but if we try and put cbd@microsoft.com in To field then the action will not work as the connection is build on abc@microsoft.com account.
Is there a way were a connection build on admin account can access the mailbox of an individual user in Org via this action?
Looking forward for a work around.
Thank you,
Naman Suri
Just do not place the address to the To: field.
Check the real address later in your flow by using the action "Export email (V2)" and parsing its output.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Learn from the top Power BI, Power Apps, Power Automate & Power Virtual Agents experts!
User | Count |
---|---|
23 | |
11 | |
10 | |
9 | |
8 |
User | Count |
---|---|
33 | |
24 | |
19 | |
16 | |
15 |