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

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 II
Super User II

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
Super User
Super User

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 II
Super User II

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

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (1,544)