cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate I
Advocate I

Archive Flow Logic - Help!

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

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Archive Flow Logic - Help!

 

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 Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Highlighted
Community Support
Community Support

Re: Archive Flow Logic - Help!

 

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 Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
Advocate I
Advocate I

Re: Archive Flow Logic - Help!

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

Helpful resources

Announcements
secondImage

August 2020 CYST Winners!

Check out the winners of the recent 'Can You Solve These?' community challenge!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (5,345)