cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
trishmalloy
Post Partisan
Post Partisan

Formula help

Hello,

 

I am working on a flow to email a weekly digest of a) all outstanding/not completed Planner tasks from utcNow into the past (30 days) and b) see all outstanding/not completed tasks from utcNow + 30 days.

 

I don't know if this can be combined into one Filter Array formula or if I need to try a different approach.

 

Could you advise me, please?

 

Here's a copy of the flow.

 

Part I.PNGPart II.PNGPart III.PNGPart IV.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
v-duann-msft
Community Support
Community Support

Hi @trishmalloy 

 

Thank you for your posting.

 

According to your description, you would like to use filter array to filter three conditions (time range and task status ) and would like to know the expression. If I misunderstood, please feel free to let me know.

 

Since there is only one condition section in basic mode, we should switch it to advanced mode first.

v-duann-msft_0-1610701233646.png

 

 

 

Then, here is the target expression:

@and(greater(item()?['createdDateTime'], addDays(utcNow(), -30)),less(item()?['createdDateTime'], addDays(utcnow(),+30)),not(equals(item()?['percentComplete'], 100)))

 

v-duann-msft_1-1610701233649.png

 

 

v-duann-msft_2-1610701233655.png

 

 

It should work well. Please kindly test and reply me if still any problem.

 

Thanks.

Anna

View solution in original post

1 REPLY 1
v-duann-msft
Community Support
Community Support

Hi @trishmalloy 

 

Thank you for your posting.

 

According to your description, you would like to use filter array to filter three conditions (time range and task status ) and would like to know the expression. If I misunderstood, please feel free to let me know.

 

Since there is only one condition section in basic mode, we should switch it to advanced mode first.

v-duann-msft_0-1610701233646.png

 

 

 

Then, here is the target expression:

@and(greater(item()?['createdDateTime'], addDays(utcNow(), -30)),less(item()?['createdDateTime'], addDays(utcnow(),+30)),not(equals(item()?['percentComplete'], 100)))

 

v-duann-msft_1-1610701233649.png

 

 

v-duann-msft_2-1610701233655.png

 

 

It should work well. Please kindly test and reply me if still any problem.

 

Thanks.

Anna

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (3,281)