Showing results for 
Search instead for 
Did you mean: 
Advocate IV
Advocate IV

Sceduled daily flow thats Use Switch to move file to folder based on choice column metadata

Hi some help please.


I have a document libray that has 3 folders. One of the columns is a choice column called MeetingSubject, most files just sit in the route library, but some files need to be moved to one of the 3 folders.


I have a when a file is created flow that works - but as it can fail when a user as the file open, I wanted to have a flow that runs each day and checks if any of the 3 meeting subject types are still in the route and need to be moved to one of the folders. I thought using swtich would be the simplest way to achieve this. But I cant get it to work.




My flow is this  - where am i going wrong?







Helper IV
Helper IV

Hi @JC75 , can you please paste the error description or a screenshot of just the error? It's too small to read in your screenshot, because the screenshot is so big 😃

Hi @OliverR-82 


Hopefully these are clearer - Main error details @items(apply to each 2) [MeetingSubject] is not valid, its is of type 'Object' but is expected to be a value of type 'String, Interger'




Helper IV
Helper IV

Thank you for the screenshot, that's readable at least 🙂 What is this field 'MeetingSubject' that you are evaluating? What type of field is this? I'm guessing it's a dropdown or multi select field or something? Is there no 'MeetingSubject value' in your list of Dynamic Content? From what I can gather that field is not returning a string, so there has to be a deeper lying property that you should reference instead.

Someone more knowledgeable will know the answer to this, I suspect.

Hi the MeetingSubject is a choice column is sharepoint. 

I want to run the flow so that it looks at each document in the library and if its been tagged with MeetingSubject: A, B, C it moves the file to the specified folder for each, if not tagged with those values do nothing.

If the MeetingSubject field is a choice column you should be able to choose 'MeetingSubject Value' in your Dynamic Content, I think. That will give you the selected value for your condition.

Helpful resources

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!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (2,742)