cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
skillsy
Advocate II
Advocate II

When a file is created (properties only) is no longer providing "Values" for Apply to Each loop

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!

1 ACCEPTED SOLUTION

Accepted Solutions
tom_riha
Super User
Super User

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.



[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ I also blog about Power Automate solutions even for non-IT people. ]

View solution in original post

2 REPLIES 2
annajhaveri
Community Champion
Community Champion

Hello,

 

Can you provide the screenshot of your flow, you are using Get Items to get files form SharePoint directory?

 

Thanks,

Anna Jhaveri

Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.
tom_riha
Super User
Super User

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.



[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ I also blog about Power Automate solutions even for non-IT people. ]

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (3,133)