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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Archive Flow Logic - H...
Power Automate
Answered

Archive Flow Logic - Help!

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am fairly new to Power Automate and am having some difficulty in creating a scheduled daily archive flow for one of my clients, in particularly in finding if a date field is more than one year old from the current date. My logic is below, and any help would be greatly appreciated. Field Names are in bold, and I also have two different content types in the list which both have slightly different logic.

Content Type = Event1

If "Event Completed" = Yes AND "Client Account Updated" is more than one year old

OR

If "Cancelled" = Yes AND "Modified" is more than one year old

Content Type = Event2

If "Event Completed" = Yes AND "Client Account Updated" is more than one year old 

OR

If "Cancelled" = Yes AND "Modified" is more than one year old

OR

If "Take No Action" = Yes AND "Modified" is more than one year old

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

     

    Hi @Sam12 ,

     

    I assume that Content Type is a choice field and Event Completed/Cacelled/Take No Action are all Boolean fields.

     

    You could refer to the following method to configure flow.

    33.PNG34.PNG35.PNG

    Besides, please check this blog and get more details about powerful condition:

    https://flow.microsoft.com/en-us/blog/build-more-powerful-conditions-in-flows-and-more/

     

    Best Regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks @v-bacao-msft - that is very helpful.

     

    Upon testing this, it looks like due to how old this data is, there are lots of items that are blank for the Client Account Updated field due to this being a fairly new field. I am therefore getting the below error message:

     

    InvalidTemplate. Unable to process template language expressions for action 'Condition_3' at line '1' and column '2805': 'The template language function 'lessOrEquals' expects two parameter of matching types. The function was invoked with values of type 'Null' and 'String' that do not match.'.

     

    How would we therefore change the logic to match the below:

     

    If "Event Completed" = Yes AND "Client Account Updated" is more than one year old OR is blank/null

    OR

    If "Cancelled" = Yes AND "Modified" is more than one year old

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
David_MA Profile Picture

David_MA 112 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 52

#3
Ellis Karim Profile Picture

Ellis Karim 51 Super User 2026 Season 1

Last 30 days Overall leaderboard