cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Basic_User007
Kudo Kingpin
Kudo Kingpin

When a file is created - multiple files

Has anyone has any success using the trigger 'When a file is created' but for it to pick up multiple files being created at the same time e.g. using the file upload question in Forms. 

 

I want to use these files to then add as an attachment into SharePoint list.

 

I have been able to get this working successfully for 1 file but does not work for multiple - the Flow does not even trigger :S 

 

Happy to share the flow steps I am working with currently should anyone have any ideas on how to progress this? 

1 ACCEPTED SOLUTION

Accepted Solutions

 

Hi @Basic_User007 ,

 

Following @ScottShearer 's suggestion, if you want to save the uploaded attachments in the personal Forms to the List item, please refer to the method in this video:

https://www.youtube.com/watch?v=Foy8i6jPZrg

If you want to save the attachments uploaded in the Group form to the List item, please refer to this similar thread:

Building-Flows/O365-Group-Form-responses-with-attachments-to-Sharepoint-List

 

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
ScottShearer
Super User
Super User

@Basic_User007 

Please post screen shots of your Flow.

Is there a reason that you aren't using the When a form is submitted trigger?  If you did, you might use the following concept:

  1. When the Forms trigger fires, list all the files in the OneDrive folder
  2. Create the list item
  3. Loop through the files (if any were submitted) and attach each file to the list item
  4. Delete the items which have been attached to the list item from the folder.

 

 

 

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott
v-bacao-msft
Community Support
Community Support

 

Hi @Basic_User007 ,

 

If the files are uploaded to a specified folder at the same time, there may be a way to get all the files in the folder from the item ID.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @ScottShearer

 

I am just using a basic example at the moment to get the file upload working so didn't think of this. How would you expand 'loop through the files'? I am not sure I know where to start with that. 

@v-bacao-msftas standard Forms uploads the files into a folder when the response is submitted.... 

 

Hi @Basic_User007 ,

 

Following @ScottShearer 's suggestion, if you want to save the uploaded attachments in the personal Forms to the List item, please refer to the method in this video:

https://www.youtube.com/watch?v=Foy8i6jPZrg

If you want to save the attachments uploaded in the Group form to the List item, please refer to this similar thread:

Building-Flows/O365-Group-Form-responses-with-attachments-to-Sharepoint-List

 

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Hi, i have some trouble this is my flow

Aqim88_0-1631858754929.png

 

everthing OK when i just upload 1 or 2 files, but when  too many files the flow is not good.

 

thank you

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Users online (2,295)