HI
To be honest its confusing, because the data isn't clear, You talk about filtering by Product ID, then by ID, what ID? I dont see a third ID
I see things like BOL, Branch etc and none of that is explained. So what I would prefer to see is not a flow that doesnt work, but the literally steps written in step form that you want, not in a paragraph. With data examples.
I also do NOT understand why you say route them by Location, but then say by Unique ID. If you do that you will NEVER have a list of all Products that are uniquely assigned across Locations
You would need to Filter Top Line by Product ID and then Locations
Here is a fast bullet list of what you would do, if you wanted to send
1. Get Items
2. Use Select to ONLY pull the Product ID
3. Do a Compose
--union(body('Select'), body('Select'))
Now you have a unique list of all Product IDs
4. Do an Apply to Each, using the output of the compose
--Inside
-----Filter(body/value of the original Get Items where the Product ID = the current item in the Apply to Each
-----Add a Select
---------Use the output of the Filter here and only select the Location Name and the Product Id is the value from the Apply to each
---------use a Create HTML table,
---------send your email
Now based on what you have.. you have to figure out how to take these steps into what you have. Or explain them as I said and I will help