Hi.
I have a number of files dropped into a sharepoint directory and I want to loop through them and depending on their name send emails to the appropriate business owner. Unfortunately I can no longer see or select "Values" in the apply to each loop directly below this. Is this a global change or am I missing something please?
TIA!
Solved! Go to Solution.
Hello @skillsy ,
'Apply to each' needs an array as the input, but the trigger 'When a file is created' gives you only the single document, not an array. If the flow will be started for each uploaded file, you don't even need 'Apply to each', you can process the file properties directly.
'Apply to each' would be needed if you processed multiple files at once, e.g. with scheduled trigger + 'Get files' action.
Hello,
Can you provide the screenshot of your flow, you are using Get Items to get files form SharePoint directory?
Thanks,
Anna Jhaveri
Hello @skillsy ,
'Apply to each' needs an array as the input, but the trigger 'When a file is created' gives you only the single document, not an array. If the flow will be started for each uploaded file, you don't even need 'Apply to each', you can process the file properties directly.
'Apply to each' would be needed if you processed multiple files at once, e.g. with scheduled trigger + 'Get files' action.