web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Flow filter for Sharep...
Power Automate
Unanswered

Flow filter for Sharepoint list & blank date

(0) ShareShare
ReportReport
Posted on by 71

Hi there, 

I am very new to flow and I wonder if someone could help with this 'simple' query. I'd like to create a flow to update a sharepoint list. My list (list of projects) has a field EndDate. I'd like to automatically update the field called ProjectStatus to 'Open' when the EndDate is greater than today or 'Closed' when the EndDate is smaller than today or the EndDate is blank. I'm able to do the first two, but I can't seem to get it working for the case where EndDate is blank. I have tried EndDate is equal to null, but that doesn't work. Empty doesn't work either, '' doesn't work either. Any idea?

Categories:
I have the same question (0)
  • Ellis Karim Profile Picture
    11,653 Super User 2025 Season 2 on at
    Re: Flow filter for Sharepoint list & blank date

    Hi @Laura3 ,

     

    Can you share your expression for the ProjectStatus.

     

    For the expression you can try the following:

    if(empty(outputs('EndDate')), 'Closed', if(greater(outputs('EndDate'), utcNow('yyyy-MM-dd')),'Open','Closed'))

    EndDate should not contain the timestamp, only yyyy-MM-dd 

     

    Also, what happens if EndDate is equal to today?

     

    Hope this helps.


    Ellis
    ____________________________________
    If I have answered your question, please mark the post as Solved.
    If you like my response, please give it a Thumbs Up.

  • Laura3 Profile Picture
    71 on at
    Re: Flow filter for Sharepoint list & blank date

    Thanks for responding. So I have a flow that starts with a manual trigger (I'm still experimenting it will be scheduled once I know it works). Then I have a 'get items' where I fetch the data source, then I have inserted a condition. I'd like to have the EndDate is less than uctNow or is blank. If that condition is met, I have an update item that simply updates the project status to Closed. If the condition is not met, it updates to Open. It works fine when there is a date in EndDate but not where there is a blank. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard