Hello,
I am trying to create a flow where I apply actions to each file that is added in a specific folder on the Share Point, if the added file is an Excel file.
For this I wanted to run a check on each file name "if the name contains .xlsx" but I am stuck in applying the Apply to Each condition, Below is the screen Shot of the error message
Error: "The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@triggerOutputs()?['headers/x-ms-file-name-encoded']' is of type 'String'. The result must be a valid array."
I have tried to use all available Dynamic available( screen shot below) but unable to go ahead and getting same error each time

Need your suggestion