cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Super User
Super User

@empty condition on a date field in an SPO doc library always returns true

I have a recurrence flow that runs once a day and needs to check whether a custom datetime SharePoint (modern) column, NextReview, is empty or not.  After the get items action there is a condition control with: 

@empty(triggerBody()?['NextReview'])

but it always returns true, that is it takes the next action on the basis that it thinks the column in SharePoint is empty which is not the case. I've not had this problem with SharePoint lists, it only seems to affect document libraries and seems to happen whatever the column type. It looks to be a bug but does anyone have a suggestion for a way round it?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: @empty condition on a date field in an SPO doc library always returns true

Hi @RobElliott,

 

Your expression has nothing to do with Get items action, so you can't check if the specified field is empty.

Because your current configuration of the trigger does not have anything to do with the Library, it just controls when the Flow will fire.

You should configure your Flow like this. The Condition can be configured in two ways, as below:

Method 1:

9.PNG

Method 2:

10.PNG

Please take a try again.

 

Best Regards,

Barry

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
2 REPLIES 2
Community Support Team
Community Support Team

Re: @empty condition on a date field in an SPO doc library always returns true

Hi @RobElliott,

 

Your expression has nothing to do with Get items action, so you can't check if the specified field is empty.

Because your current configuration of the trigger does not have anything to do with the Library, it just controls when the Flow will fire.

You should configure your Flow like this. The Condition can be configured in two ways, as below:

Method 1:

9.PNG

Method 2:

10.PNG

Please take a try again.

 

Best Regards,

Barry

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Super User
Super User

Re: @empty condition on a date field in an SPO doc library always returns true

Thanks Barry @v-bacao-msft that works perfectly now with Method 1. I really should have thought of that myself!.

 

Rob

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

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!

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: 226 members 4,783 guests
Please welcome our newest community members: