I know this question has been asked in different ways but I can't seem to connect the dots for what I'm working on. Recently we started using teams. One of the things I was assigned to do is set up a channel for our managers to send their daily reports. The reports would then need to be filed in folders based on the area of responsibility associated with the report.
So is it possible to have files moved to separate folders based on the name of the file? Example: 2nd Main or 2nd Refresh. If so will is it safe to assume each folder will require it's on flow?
Thank you for any assistance anyone is able to provide. I'm definitely out of my element. Somehow I've become the team IT guy because I figured out a few macros in excel. lol
Solved! Go to Solution.
Hi @NotJamez,
Yes, you could use the Condition action to move the file if the filename contains the keywords, for example:
If the filename contains keyword1, move it to Folder 1, or do nothing and perform the following condition to judge whether it contains keyword2, keyword3, etc.
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi!
"So is it possible to have files moved to separate folders..."?
Were do the files come from? I mean, are they uploaded/created in the same source folder, and as soon as they are uploaded/createdyou need to move them to different folder, based on the name given?
I am also assuming files are stored in Teams group related Sharepoint site, right?
Hope this helps
Proud to be a Flownaut!
Hi @NotJamez,
Yes, you could use the Condition action to move the file if the filename contains the keywords, for example:
If the filename contains keyword1, move it to Folder 1, or do nothing and perform the following condition to judge whether it contains keyword2, keyword3, etc.
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
With only one condition it works great, but when I add the 2nd one I get the error below.
Under Condition 2
InvalidTemplate. Unable to process template language expressions for action 'Condition_2' at line '1' and column '2802': 'The template language function 'contains' expects its first argument 'collection' to be a dictionary (object), an array or a string. The provided value is of type 'Null'.'.
Hi
Please add a Terminate action block with Status 'Succeeded' just after 'Move File 2' inside the true branch of your first Condition.
Thanks!
Proud to be a Flownaut!
Hi @NotJamez,
It's weird, I test on my side but not have the same issue, how about using the string() function to convert the dynamic content and keywords into a string, or you could input the filename with extension in the left of the condition:
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!
User | Count |
---|---|
40 | |
36 | |
35 | |
34 | |
26 |
User | Count |
---|---|
39 | |
38 | |
33 | |
31 | |
24 |