web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Moving files from one ...
Power Automate
Unanswered

Moving files from one SharePoint library to another document library by year

(0) ShareShare
ReportReport
Posted on by

Hello All,

 

I have a Power Automate flow that should moves files from one SharePoint document library to another SharePoint document library automatically based on years.


Year is a chose column in SharePoint which has : 2018, 2019, 2020, 2021 values.

 

I set up the flow to send all files from one SharePoint document library to another document library apart from 2021 files.

(Keeps all 2021 files and move all other years files to a new location).

 

Unfortunately it is NOT working. I would appreciate if you could help please.

SharePoint.png

 

PowerAutomate-1.png

 

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @Anonymous 

     

    What error are you getting?

     

    Have a look at my video tutorial about moving files.

     

    https://www.youtube.com/watch?v=B9ZxAd9JVVo&t=542s

     

    Thanks

  • Community Power Platform Member Profile Picture
    on at

    It sends all files despite there is filtering value sets: Year value is NOT equal to 2021.

     

    In reality, it should NOT send the files that are tagged to 2021.

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    What is the data type of Year Value column? Could you try converting to string() or int() accordingly for the comparison.

  • Community Power Platform Member Profile Picture
    on at

    It is: Choice

     

    DataType.png

     

    How do I convert?

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @Anonymous 

     

    Looks like thats the choice column. Have a look at my video about how to filter SharePoint Choice column data types?

     

    https://www.youtube.com/watch?v=N20Y-ZNRKhk&t=7s

     

    Thanks

  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    The solution is this:  

    Adding this (Year ne '2021') into the "Filter Query" filed.  Please see the attached screenshot.

     

    DataType-1.png

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    That IF condition is not evaluating due to datatype. So if you convert to int() it should work as expected I think. Glad to hear that you found a solution.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard