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.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

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.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (4,585)