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

Welcome to the User Group Public Preview

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

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Users online (59,389)