Hi,
I have the following Flow:
When an email arrives in the shared mailbox with a particular ID from a client, a log is created in SharePoint for the incoming request (Request Log List), then SharePoint checks the Agent List on SharePoint to see who the ID belongs to and then sends an email notifying the agent whose email got autopopulated on the Request Log List responsible for the ID. Here is what the flow looks like:

The problem is, the agent is getting multiple emails for ids they are not even responsible for and I suspect it is because of that apply to each function, so I hoping someone can help me find a solution so that agents get only 1 email for the ID they are responsible for only.
PS: the incoming emails from the clients contain a PDF file (not sure if this information is helpful but I just wanted to mention that)
Thank you