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.

View solution in original post

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.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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 Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (6,161)