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 / check if the property ...
Power Automate
Suggested Answer

check if the property exists

(0) ShareShare
ReportReport
Posted on by 103
Hi, In my flow I try to get address from Dataverse table. 

This column address is not required in the table.
When the address is exist, flow run successfully, but when did not exist I get error message.

How can I check if this value is exist and if no add an empty value?
Categories:
I have the same question (0)
  • Suggested answer
    Ellis Karim Profile Picture
    11,940 Super User 2026 Season 1 on at
    Hi @xvzms,
     
    Try using the "bracket notation with a question mark" (query method):
     
    if(
        equals(body('Get_a_row_by_ID')?['address1_country'], null), 
        '', 
        body('Get_a_row_by_ID')?['address1_country']
    )
    
    The use of the question mark in JSON specifies that if the property being referenced does not exist then a null value will be returned instead of throwing an error.
     
    So, if the property 'address1_country' is missing, the expression body('Get_a_row_by_ID')?['address1_country'] will return null.
     
    You can also use the empty function to shorten the above expression to:
     
    if(
        empty(body('Get_a_row_by_ID')?['address1_country']), 
        '', 
        body('Get_a_row_by_ID')?['address1_country']
    )
    
     
     
     
    Ellis Karim

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 286

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard