cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted

 

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

5 REPLIES 5
Highlighted
Super User III
Super User III

@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
Highlighted
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.
Highlighted

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. 

Highlighted

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

Highlighted

 

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

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (12,896)