cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
SylvieLet17
Level 8

Send an Email if Get Files (Properties Only) is Empty

Hi all,

I would like to run a scheduled flow with an action "Get files (properties only)" with an ODATA filter query: Created gt '

addHours(utcNow(),-24)'
 
I would then like to have a condition that sends an email only if the Get files query is not empty. So only when the filter retrieves files the email should send. 
If the filter does not retrieve any files, I would like it to not send the email. 
Can anyone help with this?
 
Thanks
1 ACCEPTED SOLUTION

Accepted Solutions
v-zhos-msft
Level 10

Re: Send an Email if Get Files (Properties Only) is Empty

Hi @SylvieLet17 ,

You don’t want to send an Email if Get Files (Properties Only) is Empty.

 I have made a test on my side, please take a try with the following workaround:

The expression of the condition is: empty(body('Get_files_(properties_only)')?['value'])  is equal to true

8.png

Best Regards,

Community Support Team _ Zhongys

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

1 REPLY 1
v-zhos-msft
Level 10

Re: Send an Email if Get Files (Properties Only) is Empty

Hi @SylvieLet17 ,

You don’t want to send an Email if Get Files (Properties Only) is Empty.

 I have made a test on my side, please take a try with the following workaround:

The expression of the condition is: empty(body('Get_files_(properties_only)')?['value'])  is equal to true

8.png

Best Regards,

Community Support Team _ Zhongys

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

Helpful resources

Announcements
firstImage

Microsoft Flow Online Conference

Join us for a FULL day of FREE Microsoft Flow Sessions from some of the best minds in the industry!

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

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

thirdImage

New Flow Community Board!

Check out the new Microsoft Flow Community Blog Topic Suggestion board!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 166 members 4,925 guests
Please welcome our newest community members: