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

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Check if SharePoint da...
Power Automate
Unanswered

Check if SharePoint date contain 2019

(0) ShareShare
ReportReport
Posted on by 28

Hi Guys

 

Is there a way I can add a condition in a flow that check a SharePoint list and go over each item to see if the date has the year 2019? I would like to automatically copy only the items that are dated 2019 to another SharePoint list

 

How can I create such a condition?

 

Thanks

Categories:
I have the same question (0)
  • v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi @rory99,

     

    Do you want to get specific items that dated 2019 from one SharePoint list to another?

    Please check the following flow for a reference.

    Add Button trigger.

    Get items from List B.

    Add a Condition with the following code to filter out items that are dated 2019:

    @equals(formatDateTime(items('Apply_to_each')?['DueDate'],'yyyy'),'2019')

    Under If yes branch, add action Create item to create the filtered items into List A.

    A screenshot for your reference:

    1.PNG 

     

    Best regards,

    Mabel

  • rory99 Profile Picture
    28 on at

    Hello Mabel

     

    Sorry for my late response

     

    Unfotunalty my flow still does not work properly...

    In my flow, I am ckecking if a column has the phrase "Testing Center" in it and if so, it checks if another column has the value "2019" as you suggested, if so, it copies the items to a different SP list

     

    Only it fails on the first condition...but when I delete the 2nd condition and keep only the first one it works

     

    any idea whay? Have I missed anything?

     

    Here is the flow:Capture.PNG

     

     

     

     

     

     

     

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 239 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 177 Super User 2026 Season 1

#3
Kalathiya Profile Picture

Kalathiya 97 Super User 2026 Season 1

Last 30 days Overall leaderboard