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

Notifications

Announcements

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,187 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,187 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,187 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

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
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard