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 do you check for N...
Power Automate
Answered

How do you check for Null in Power Automate Desktop? (versus empty)

(3) ShareShare
ReportReport
Posted on by 139

We need to check to see if a JSON value is null or not.  Here is the JSON:

 

 

"customfield_25300": null,

 

 

When using the "If" statement, with "Isn't empty", a "variable doesn't have a property" error message is presented (screenshots below).  This error message doesn't appear, however, if customfield_25300 contains a value (e.g. "John") instead of null.  This makes us think that our value in "First operand" is correct, but that the null in the JSON is in some way confusing the "If" statement.

 

How do you check for null in Power Automate Desktop?

 

drake_0-1625839208896.png

 

drake_1-1625839366352.png

 

I have the same question (0)
  • Verified answer
    yoko2020 Profile Picture
    495 on at

    There is already solution here 

     

     

    More Samples

    Copy and paste to your PAD designer.

    SET NewVar TO $'''{\"name\":\"John\", \"age\":30, \"car\":null}'''
    Text.Replace Text: NewVar TextToFind: $'''%'null'%''' IsRegEx: False IgnoreCase: False ReplaceWith: $'''%'\"\"'%''' ActivateEscapeSequences: False Result=> NewVar
    Variables.ConvertJsonToCustomObject Json: NewVar CustomObject=> JsonAsCustomObject
    IF IsEmpty(JsonAsCustomObject['car']) THEN
     Display.ShowMessage Icon: Display.Icon.None Buttons: Display.Buttons.OK DefaultButton: Display.DefaultButton.Button1 IsTopMost: False ButtonPressed=> ButtonPressed3
    END

     

  • takanee Profile Picture
    17 on at

    @drake 
    This could be a solution.

    • Add In/Out Variable with 'Empty'
      • Not "Set Variabes"

    takanee_1-1633437085559.png

    usage example

    takanee_2-1633437122267.png

     

    Power Automate Desktop: null を利用する方法 - Qiita

  • sebastiendb Profile Picture
    69 on at

    @drake  Did you find any proper way to solve this issue? (Converting to string and then replacing the 'null' string isn't a solution, but more like a bad workaround)

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 269 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 184 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 136 Super User 2026 Season 2

Last 30 days Overall leaderboard