Hi @AndyFRT ,
You could add two Compose actions above Condition, enter the two Expressions you are currently using, and see which Expression has an error.
I am currently speculating about possible errors as below:
First, int(items('apply_to_each')['Ref BAT']) needs to be changed to int(items('Apply_to_each')['Ref BAT'])
And if Ref BAT is used correctly, you could check Body of List rows present in a table to see how this field is displayed in Body.
Second, you could check whether the field value of Dynamic content output of Name contains the extension. You can view the value of this field in Body of Get files action.
Third, I mentioned in the previous Post that there may be errors, because Get files action will get all the files and folders, so there may be such an error.
You can check if there are any successful results in Apply to each 2, or you can check if the email address used for testing has received the expected email.
If so, this Flow has achieved the expected requirements, and these errors are negligible.
Best Regards,