Hi Everyone,
I have created a simple flow, and it does the following.
An email comes to a SharedMailbox (number1) from a specific email address (number 2) in the condition section; it grabs the CC and replies back to the CC with a message.
Is there a way to filter out/exclude certain domains so that the flow won't reply to everyone cc in the email? For example, if the sender included the @gmail.com email, I exclude that domain from the rest. I want to do it because the sender will cc other people in our company, but I don't want the flow to reply to everyone.
Solved! Go to Solution.
To do that, you need split the Cc from the email at the ; and then Filter that array for those do not contain the domain to exclude. You can then use the join function with a ';' delimiter to get the new string to use in the reply email.
Pat
To learn more about the Power Platform, follow me on Twitter or subscribe on YouTube.
To do that, you need split the Cc from the email at the ; and then Filter that array for those do not contain the domain to exclude. You can then use the join function with a ';' delimiter to get the new string to use in the reply email.
Pat
To learn more about the Power Platform, follow me on Twitter or subscribe on YouTube.
@Oeskandarian- I wonder if using a Trigger Condition logic would work using https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#e... instead of what I use in my example:
Hi Mahoneypat,
Thank you for the reply; It is working. I added Condition and made Outputs is equal to Outputs, then added the Send an email (v2). I said three domains ( Gmail, Hotmail & my work domain). The reply went to everyone except Gmail. Here are my screenshots.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
At the monthly call, connect with other leaders and find out how community makes your experience even better.
User | Count |
---|---|
21 | |
21 | |
9 | |
7 | |
7 |
User | Count |
---|---|
33 | |
31 | |
24 | |
21 | |
11 |