I am creating an alert flow in PowerAutomate where I wanted to add a condition where if "To" contains XYZ@domain.com but there is nothing else from @domain.com, then the flow would trigger an alert. If there are other email IDs in the "To" section which is not from @domain.com, The flow should still be triggered. I have pasted a screenshot of what I have so far but it does not seem to work.
Solved! Go to Solution.
@Balajied1999
What a challenging issue!
I am assuming your Flow is triggered by means of 'When a new email arrives'
If so, I would rather transform and merge To and CC into a single array by means of union() and split() functions, use 'Filter array' to remove XYZ@domain.com; then convert back Filter array output into a string by means of join()
I am using the following expression in 'Initialize variable'...
union(split(triggerOutputs()?['body/toRecipients'],';'),split(triggerOutputs()?['body/ccRecipients'],';'))
...also the following expression as left term of 'Filter array'...
item()
...and finally the following expression as the left term on 'Condition':
join(body('Filter_array'),';')
Hope this helps
Hope this helps
Proud to be a Flownaut!
Hi again!
Well, it seems my proposal matches your requirements, right? Or am I missing something?
Please give it a try and let us know your progress
Thanx!
Proud to be a Flownaut!
@Balajied1999
What a challenging issue!
I am assuming your Flow is triggered by means of 'When a new email arrives'
If so, I would rather transform and merge To and CC into a single array by means of union() and split() functions, use 'Filter array' to remove XYZ@domain.com; then convert back Filter array output into a string by means of join()
I am using the following expression in 'Initialize variable'...
union(split(triggerOutputs()?['body/toRecipients'],';'),split(triggerOutputs()?['body/ccRecipients'],';'))
...also the following expression as left term of 'Filter array'...
item()
...and finally the following expression as the left term on 'Condition':
join(body('Filter_array'),';')
Hope this helps
Hope this helps
Proud to be a Flownaut!
Yes Close. What I want is that when a new email arrives in a shared mailbox (XYZ@domain.com), most people outside the organization copy someone or the other from the organization along with the mailbox email ID. There are rare cases where clients send the email to only the Shared mailbox's email ID and these emails go unnoticed. So what I wanted was that if we get an email where a client only sends the email to the shared mailbox with no one else from @domain.com, Admin gets the notifications.
Hi again!
Well, it seems my proposal matches your requirements, right? Or am I missing something?
Please give it a try and let us know your progress
Thanx!
Proud to be a Flownaut!
That really helped me Thanks!
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 | |
8 | |
7 |
User | Count |
---|---|
33 | |
31 | |
25 | |
21 | |
11 |