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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Set rule based on spec...
Power Automate
Unanswered

Set rule based on specific date

(0) ShareShare
ReportReport
Posted on by

Hi guys,

 

I have an issue with my flow on setting a rule based on a date.

In my flow I register all the elements from a microsoft form; if a string/date field is empty, autocamically the flow replace the blank cell with "1/1/2001", otherwise I receive an error because that specific cell can't be blank.

Now my issue is related to the fact that I need that cell to be blank and not filled with the variable

 

Immagine.png 

The compose formula is this 

 

if(equals(outputs('Crea_elemento')?['body/Deadline'],variables('null')),replace(outputs('Crea_elemento')?['body/Deadline'],'
variables('null'),'-'),outputs('Crea_elemento')?['body/Deadline'])
 
At the end, this formula doesn't replace what I expect
 
 
 
Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,755 Most Valuable Professional on at

    Hi @Sesese,

     

    Just to double check. If the Deadline field in the Crea elemento action is empty you want to populate it with 1/1/2001.

     

    If that is correct you could use an empty function for this. 

    if(empty(outputs('Crea_elemento')?['body/Deadline']), variables('null'), outputs('Crea_elemento')?['body/Deadline'])

     

     

     

  • Sesese Profile Picture
    on at

    In the "create element" I have already defined this rule in order to have that fixed date, otherwise the flow gives me an error.

    After that, I want to delete that fixed value and have an empty value

  • Expiscornovus Profile Picture
    33,755 Most Valuable Professional on at

    Hi @Sesese,

     

    If you want to clear the value you can probably just use this expression instead:

    if(equals(outputs('Crea_elemento')?['body/Deadline'], variables('null')), '', outputs('Crea_elemento')?['body/Deadline'])

     

  • Sesese Profile Picture
    on at

    It seems it doesn't work, on the sharepoint table the value is still there

  • Expiscornovus Profile Picture
    33,755 Most Valuable Professional on at

    Hi @Sesese,

     

    Can you show me where you are using this expression? In addition to that can you show me how your Deadline column is configured in SharePoint, can you share a screenshot of the settings of that column?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 103 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 87

#3
trice602 Profile Picture

trice602 63 Super User 2026 Season 1

Last 30 days Overall leaderboard