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 determine i...
Power Automate
Unanswered

How do you determine if a property exists or not in a JSON object with Power Automate Desktop?

(0) ShareShare
ReportReport
Posted on by 139

I am using Set Variable to get the value of a JSON object property.  Sometimes this property isn't present, however, and the desktop flow stops with an error.  I tried wrapping the Set Variable action in an "On block error", with the "Continue flow run" option set (screenshot below), and then checking for empty string afterward.  The "On block error" doesn't work, however, and the Set Variable action's error stops the desktop flow.  

 

I've tried a few other things, but none have worked so far.  Is it possible to determine if a property exists or not in a JSON object with Power Automate Desktop?  

 

drake_0-1625769952983.png

 

  • tkuehara Profile Picture
    667 on at

    Hi @drake 

     

    Yes, you can try using "If contains". For example, in the object below:

    tkuehara_0-1625772424638.png

    tkuehara_3-1625772621003.png

     

    The "If contains Data7" will find the element:

    tkuehara_1-1625772477919.png

    If I search for a "Data8" (non-existing element), it will return "No":

    tkuehara_2-1625772574924.png

     

    You could also try a parse of the entire json, but you need to convert your object to string before parsing. If the parse action returns 0 matches, then you don't have that property in your json.

  • 3tsolutions Profile Picture
    94 on at

    I wrote a solution to handle missing properties of an object, if it helps..

    LINK

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

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 233 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 178

Last 30 days Overall leaderboard