cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper V
Helper V

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
Highlighted
Solution Sage
Solution Sage

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.

View solution in original post

2 REPLIES 2
Highlighted
Solution Sage
Solution Sage

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.

View solution in original post

Highlighted
Regular Visitor

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

@v-zhos-msft this also really helped me for the opposite result! Thanks so much!!

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

Top Solution Authors
Top Kudoed Authors
Users online (9,411)