How to auto separate MS Lists uploads into separate Sharepoint folders using Power Automate?

Anonymous
2024-04-09T20:38:05+00:00

Hello,

Just realized that MS Lists only allows 1 column for attachments (though allowing multiple attachments). The problem is, I was trying to create multiple columns so the attachments can be added by category.

Since I can't categorize multiple columns, I need to be able to separate the attachments into categorized folders once they are uploaded but I want to do this automatically.

How do I use Power Automate to grab the attachments and place each file in separate SharePoint folders? Thanks!

Lissa

Microsoft 365 and Office | Install, redeem, activate | For business | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

54 answers

Sort by: Most helpful
  1. Anonymous
    2024-04-11T06:59:53+00:00

    Dear Lissa,

    Thanks for your updates.

    You can just change the Filter Array part in the flow screenshots in my reply above as follows to see the result.

    Filter Array:

    replace(item()?['DisplayName'],'_',' ') contains Category Blue.

    Welcome to share any updates at your convenience.

    Thank you for your effort and time.

    Sincerely

    Cliff | Microsoft Community Moderator

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2024-04-10T14:45:28+00:00

    That's great news! Thank you so very much for that information! As mentioned, I'm new to Power Automate so I'm not entirely sure how to create conditions but knowing it's possible is a great start. I guess I'll have to quickly research a how-to on that. Thank you!

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2024-04-10T06:53:36+00:00

    Dear Lissa,

    Thanks for your updates and kindness.

    Yes, I think that it is possible.

    You can just use the condition if File name with extensions contains Category Blue in the Condition action or the Filter Array action to let the flow filter the files and move them to the corresponding folder.

    Welcome to share any updates at your convenience.

    Thank you for your effort and time.

    Sincerely

    Cliff | Microsoft Community Moderator

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2024-04-10T02:10:49+00:00

    Hello,

    Thank you so much for this information! I'm new to Power Automate and the details you've provided are so helpful and informative.

    What I'm attempting to do is gather employee data using MS Forms, collect the responses in MS Lists and save the file attachments in a SharePoint document library.

    Here's the problem and why I initially tried to create multiple file attachment columns in MS Lists (until I realized it was not possible). The files that my colleagues will be uploading all have the same file extensions but belong to different categories. I want to extract those files from MS Lists and save them in a document library folder according to the category the file belongs to.

    If Power Automate only recognizes the file extension and file name, is it possible to set this up using the first characters in the file name?

    For example, say there are 3 attachments from different respondents with file names:

    1. Category_Blue_Jane
    2. Category_Blue_Jon
    3. Category_Blue_Jen

    Can Power Automate detect these files by the first characters of the file names and place them all in a folder that has been created (example: 📂 Category Blue)?

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2024-04-10T01:24:13+00:00

    Dear Lissa,

    As Power Automate can only get list attachment file extensions and file names, you can only category the attachments via the file name or file extensions not other metadata automatically.

    If you want to category the file via other metadata, you may use PowerApps to customize a form and then use a flow to category the attachments. But you need to buy the PowerApps licenses to all users who are using the custom PowerApps forms.

    Here is an example which can be done by a flow to category the Word files to the Word File folder in a document library.

    File Attachments

    Now let the flow to grab the w.docx file to the Word File Folder in Document Library 1.

    Flow is as follows.

    If you need to category other file extensions, add other filter arrays in the flow.

    Result:

    Thanks for your understanding.

    Sincerely

    Cliff | Microsoft Community Moderator

    Was this answer helpful?

    0 comments No comments