Hi All,
I'm trying to define a trigger condition, to make the flow run only when the filename contains the string "Uren". The expression I wrote works as a Condition Action, but returns and error when set as trigger condition. If I understand the error correctly, it's trying to read the filename before it's present in the flow, returning a null. How can I fix this?
Expressions: contains( base64ToString(triggerOutputs()?['headers/x-ms-file-name-encoded']),'Uren')
Error: InvalidTemplate. Unable to process template language expressions for trigger 'When_a_file_is_created_or_modified_in_a_folder' at line '1' and column '16216': 'The template language function 'base64ToString' expects its parameter to be a string. The provided value is of type 'Null'. Please see https://aka.ms/logicexpressions#base64ToString for usage details.'.
The flow: