I'm trying to build a trigger condition for my flow so the flow will only trigger if the condition is met. I want the condition to be if the filename contains the word 'drivers'.
I tried using this:
@contains(triggerBody()?['Name'],'drivers')

but got the error message:
InvalidTemplate. Unable to process template language expressions for trigger 'When_a_file_is_created_or_modified_(properties_only)' at line '1' and column '17042': 'The template language function 'contains' expects its first argument 'collection' to be a dictionary (object), an array or a string. The provided value is of type 'Null'.'.
Thanks for any help you might have!