Hi,
In that case, i would suggest to keep the details of email in an external file and validate whether the email details has been processed by bot.
This should be the way flow should be designed,
For duplicated emails, i assume that alert emails have same subject /some part of subject would be same.
This is how it should be done.
Create an excel file with only one column - Subject.
In the flow design - update the design as like described below
1. After the trigger when email arrives, check in excel file whether the email record already exists based on email subject.
2. Now using condition action, check whether the email record exists in excel
If email record exists:
Do nothing
if email record does not exists
This means email is coming first time so need to alerted to teams channel.
Along with that, add a new row in excel with email details so that next time when bot gets triggered, it should be validated.
Hope it helps !
Thanks & Regards,
Nived N