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 / How do I create a flow...
Power Automate
Unanswered

How do I create a flow that checks if a date column is blank, if it is blank it needs to use a default date to create reminders

(0) ShareShare
ReportReport
Posted on by 12

Hi community. 
I have created a reminder flow that runs everyday to check if the current day is the same as the valid until date if the dates are the same, it should send out an reminder.  

I have created two columns: 
Valid until date : Selected by the document owner, if they have a specific date.
Default Valid Date = Default date, adding 1 year to the last modified date.

Valid until date (Date) : If this column has a date the flow should calculate the reminder days and send out the reminder if the date is equals to the current date.

Valid until date (0) : If the column is blank, the flow should use the default valid date column. 

 

I have an issue creating the condition to check if the valid date has been selected, I cannot make it switch to the no branch if the valid until column is blank. So the flow keeps failing because the column is blank. 

The first sceenshot shows a test where I added a date in the Valid until date. and it was able to send a reminder. 

maily_0-1668687108569.png


With the rest of my documents that was supposed to go into the no branche because the valid until date is empty. 
However it goes into the same branch as fails because the flow cannot calculate the reminder dates. 

maily_1-1668687515182.png


Thank you in advance for your help!

Categories:
I have the same question (0)
  • Verified answer
    grantjenkins Profile Picture
    11,063 Moderator on at
    Re: How do I create a flow that checks if a date column is blank, if it is blank it needs to use a default date to create reminders

    That's a long name for your Apply to each 😉

     

    You might need to check if the date is null. See the Condition below. The expression I've used is:

    items('Send_reminders_to_Document_Owner_based_on_Valid_until_date')?['Valid until date']
    
    null

     

    grantjenkins_0-1668689084308.png

     

    Note that I've used a question mark ? in the expressions to set the value to null if it doesn't find the property.

     

  • Verified answer
    Sundeep_Malik Profile Picture
    6,484 on at
    Re: How do I create a flow that checks if a date column is blank, if it is blank it needs to use a default date to create reminders

    Hey @maily 

     

    I was stuck in a similar situation some days back.

     

    So, for the null date you can make a condition such that if the date is null take the default date, and if the date is not null take the original date. So, the condition should like this:

     

    if( equals(datefield,''),'default date', 'original date field')

     

    So, by above expression, I am checking if date field is null or not, if it is I am taking the default date and if it not null I am taking the original date.

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