I have a collection of folders in SharePoint all within 1 folder. These folders have various files inside of them ranging from PDF to JPEGs. I need to move these files into a collection of lists items inside a different SharePoint folder. The transfer should occur when clicking the list item, or it should happen all at once (whatever is easiest).
The title of the folder must match with the transition ID of a list before a transfer can be made (i.e., contents of a folder whose title is 111 will have their files copied and pasted into the list with transition ID 111 as attachments).
I cannot post a screenshot of my flow attempt but I will explain it below:
Trigger: ‘For a selected item’ [list items]
‘Get items’ [from original folder]
’Filter array’ [where folder name must equal to list item transition ID]
’Apply to each’ [loop the function for each list item]
‘Create file’ [Create a copy of the files from the folder into their appropriate list item]
I am getting an error attempting to save, indicating that I may have invalid input parameters. How can I go about this task properly with appropriate input parameters in each action?