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
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

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

Users online (4,386)