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 / Microsoft Power Automa...
Power Automate
Unanswered

Microsoft Power Automate - Null Values & Dates

(0) ShareShare
ReportReport
Posted on by 25

Hello

 

I have a Power Automate Flow which runs happily, BUT, I am unable to format a date value in one line via formula - I just can't work it out!

 

The data it pulls from may contain no value, or date, until the item has been reviewed, I am trying to amend the date displayed when an email is sent, so that it returns a value that is formatted the same as those above.

 

Unfortunately, any formatDateTime that I have tried, will not ignore missing values and stops the Flow running fully, is there a way around this, I am using the formula below on 'Date Quoted' and 'Supply Date', both always contain a value:

formatDateTime(parseDateTime(items('Apply_to_each')?['DateQuoted']), 'dd/MM/yyyy', 'en-GB')

 

The 'Last Chased' value may not always be present, so I need a formula which will formatDateTime, but also ignore blanks, can anyone assist?

Example and screenshots attached, I have left in the 'Dynamic Value' for 'Last Chased' for ref.

 

Thanks!

Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @HGarrod,

     

    You could use the if and empty functions for this.


    Try something like below:

    if(empty(items('Apply_to_each')?['LastChased']), 'Last Chased Date field is empty', formatDateTime(items('Apply_to_each')?['LastChased'], 'dd/MM/yyyy', 'en-GB'))

     

  • HGarrod Profile Picture
    25 on at

    This has worked perfectly! Thank you for your assistance 🙂 

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard