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

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

(0) ShareShare
ReportReport
Posted on by 1,146

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
    ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 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,146 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

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