Forum Discussion
drag and drop in SharePoint library group view
I am not using folders in my library, below are the details of my library and drag n drop scenarios.
Document library named as "Reports"
Library columns as "Title", "Name", "Year", "Month"
Library view "Report Group" has two level of grouping based on "year" column first and then "Month" column
I have 2 scenarios of drag and drop files in my library view "Report Group"
Scenario 1: If I drop file on library canvas, it should automatically apply current year and month based on today's date. This is working.
Scenario 2: If I want to upload a file for Year 2019 and Month August, then I should drag n drop my file on my group which shows me year as 2019 and month as August. This is not working.
Please let me know if you need more information.
Oh, I see one problem with your scenario. Views are just views into a single library. If you want different months and years to be automatically added, you cannot do that with just a view. Use folders and the option to automatically add metadata to the files in a folder. Or, if you want different libraries for each variation, see my previous post. AbhishekM Gupta
- AbhishekM GuptaAug 14, 2020Copper ContributorThank you for your response.
I remember it worked earlier, not sure why it stopped working.- shawn_fieldingAug 14, 2020Iron Contributor
AbhishekM Gupta I am not sure I understand. If you wish to add different years automatically in a folder situation, you can do that via power automate. For instance, one flow will populate all years and months to files in a particular folder. Another flow will add the year and month to another folder, etc. Since you want it consolidated and automated though, I suggest libraries so that you can automatically apply of metadata using the column default values. I think I steered you wrong in previous posts and got those two opposite. But you just can't do that within a view in any way. It is one library, with one set of rules, no matter how you view it.