Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

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!

  • HGarrod Profile Picture
    25 on at
    Re: Microsoft Power Automate - Null Values & Dates

    This has worked perfectly! Thank you for your assistance 🙂 

  • Verified answer
    Expiscornovus Profile Picture
    31,641 Most Valuable Professional on at
    Re: Microsoft Power Automate - Null Values & Dates

    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'))

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,651 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow