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

 

JC75_0-1615385668927.png

 

My flow is this  - where am i going wrong?

 

JC75_1-1615385710387.png

 

JC75_2-1615385731728.png

 

 

5 REPLIES 5
OliverR-82
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'

JC75_0-1615387004573.png

JC75_1-1615387040593.png

 

OliverR-82
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

Announcements
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)