I have a flow that is responsible for extracting specific attachments from multiple emails. The flow works, but I am curious if it can be optimized since I am relatively new to power automate.
This is what the flow looks like:
I start with the get emails(V3) action and use the parameters to filter an inbox for specific emails to look for

Once the emails are identified, I need to loop through each email and each attachment in each email to see if the attachment is a valid attachment. A valid attachment is checking for csv, xls and xlsx attachments.

Now my issue like in the nested for loops. Sometimes it runs quickly and other times it lingers on the one action for a long time. I am using concurrency control as well. Is there a way to debug why it it taking so long in some instances? Or is there a more optimal/reliable way to achieve this type of functionality?

