cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
confusedintern
New Member

Send an email ONLY when there is an expired item!

Hi all! 

 

Presently, I have a flow that is working which sends an email regarding any SDS list that have expired. The email looks like this: 

confusedintern_0-1627264787574.png

 

The flow currently runs everyday at 8am, and I noticed that even when there isn't any expired items, the email will still send (with empty table, because nothing has expired yet).

 

This is how my flow looks like as a whole:

confusedintern_1-1627264903612.png

 

This is how the middle portion of my flow looks like in a bit more detail if that would help contextualize my flow better:

confusedintern_2-1627265006510.png

 

According to my google search on this, apparently I would need to add an "If No / If Yes" portion to my flow, but I'm not sure how. Can anyone guide me through this? Thank you so much! 

1 ACCEPTED SOLUTION

Accepted Solutions
v-LilyW-msft
Microsoft
Microsoft

Hi @confusedintern 

Please add Condition action after the Filter array action, if the Filter array has a value, proceed to the next step, if there is no value, end the Flow:

Expression:length(body('Filter_array'))

vLilyWmsft_1-1627269702043.png

Hope the content above may help you.

Best Regards

If my solution helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-LilyW-msft
Microsoft
Microsoft

Hi @confusedintern 

Please add Condition action after the Filter array action, if the Filter array has a value, proceed to the next step, if there is no value, end the Flow:

Expression:length(body('Filter_array'))

vLilyWmsft_1-1627269702043.png

Hope the content above may help you.

Best Regards

If my solution helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,955)