Skip to main content

Notifications

Power Automate - General Discussion
Answered

Compare current year from Sharepoint List

(0) ShareShare
ReportReport
Posted on by

Hi everyone,

 

I'm a beginner power platform I need to know how to Compare Current Year from Sharepoint List and Create Current Year if Data not have Current Year

 

Example

ProductYear
Car

2021

Car2022
Bike2022

 

If flow check Car and Bike not Matching Current year Flow will Create New Record with Current Year

ProductYear

Car

2021
Car2022
Bike2022
Car2023
Bike2023

 

Best Regard

Chaiya

 

  • Re: Compare current year from Sharepoint List

    Thank you very much It's work

     

    Best Regard

    Chaiya

  • Verified answer
    Re: Compare current year from Sharepoint List

    Hi @Chaiyasavework1 ,

     

    Is there a column named Year in your table, and you want to determine whether the Year of the items in the table is the current year, and if not, add a new item?

    You can use the following formula in flow to get the current year.

    formatDateTime(utcNow(),'yyyy')

    vdezhilimsft_0-1675143673808.png

    vdezhilimsft_2-1675143736931.png

    vdezhilimsft_1-1675143716446.png

    vdezhilimsft_3-1675143784297.png

     

    Best Regards,

    Dezhi

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,580

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,909

Leaderboard