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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Users online (45,022)