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!
Solved! Go to Solution.
Figured it out - I was missing {} brackets, so a simple syntax error. Once I added them in, the flow worked great!
@contains(triggerBody()?['{Name}'],'drivers')
So whenever my filename contains the text drivers, the flow will trigger.
Figured it out - I was missing {} brackets, so a simple syntax error. Once I added them in, the flow worked great!
@contains(triggerBody()?['{Name}'],'drivers')
So whenever my filename contains the text drivers, the flow will trigger.
User | Count |
---|---|
23 | |
14 | |
13 | |
10 | |
9 |
User | Count |
---|---|
51 | |
29 | |
29 | |
24 | |
22 |