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 / How to add in an Expre...
Power Automate
Answered

How to add in an Expression if Dynamics Content as a Null value

(0) ShareShare
ReportReport
Posted on by 1,154

Hi,

I have an app that may or may not have two dates.  

In my Flow an email goes to various people / departments and to get the date in the correct format I've used an expression.

My flow as failed when there is not date in one of the fields.

ClarkyPA365_0-1698833606301.png


ClarkyPA365_1-1698833704391.png

 

Can I get round this via the Flow process or do I need to look at a formula in the app itself??

I do have a similar Expression for Amounts to format these so can this be taken in to consideration??

Regards

Chris

Categories:
I have the same question (0)
  • Verified answer
    Manish Solanki Profile Picture
    15,167 Moderator on at

    Hi Chris,

     

    Please test for null or empty value in the field using if function in the expression. You could try this:

    if(empty(triggerOutputs()?['body/ReturnTravelDateTime']),'Not Available',formatDateTime(triggerOutputs()?['body/ReturnTravelDateTime'],'dd/MM/yyyy'))

    here, if ReturnTravelDateTime is null or empty, the expression will return 'Not Available'. You may modify this in the expression as per your need.

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

  • Chris1968 Profile Picture
    1,154 on at

    Hi @ManishSolanki 

    Thank you for your solution.  Worked perfectly 😊

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 605

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard