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 / Power Automate Desktop...
Power Automate
Unanswered

Power Automate Desktop Extract null from JsonAsCustomObject

(2) ShareShare
ReportReport
Posted on by 7

Using action "Invoke Web Service", i'm returned a JSON output (works fine..)

In the end, the data is to be inserted in a SQL database, so using action "Convert JSON to Custom Object", i'm turning the JSON into a custom object.

 

My data now looks like this:

{
"name": "Donald Duck",
"isCompany": "",
"vatNumber": "",
"cellPhoneNumber": "",
"phoneNumber": "",
"email": "",
"comment": "",
"categoryReference": {
"name": "",
"id": "3000",
"externalId": "3000"
},
"billingAddress": {

.... rest of data is cut off and not included in this post

 

On my way towards the SQL insert, i am using action "Set Variable" = '%JsonAsCustomObject.name%' (which works fine, the variable is set correctly to "Donald Duck")

but..

Using action "Set Variable" = '%JsonAsCustomObject.email%' will returns this error: "Variable 'JsonAsCustomObject' doesn't have a property 'email'."

 

How do i get to the point where i can make PAD understand to pick up the value "NULL" or "BLANK" when my Custom Object does not hold a value ?

 

 

 

  • PetrosF-MSFT Profile Picture
    Microsoft Employee on at

    Hi @ALPetersen 

     

    I tried it with the latest version, and looks like it picks the blank value successfully.

     

    Could you check with the latest one?

     

    Download link: Power Automate Desktop Use desktop flows to automate actions and business processes on your desktop environment. (microsoft.com)

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I am also hitting this roadblock. Was there a solution or a proper way to address this that you found @ALPetersen ?

     

    Also the message stating that a variable "doesn't have a property" is not correct in my case. It has the property but the property is null. What I try to do is to catch these cases with an IF (empty) and set it to 0 or something but same result 😕

    Fjalar_0-1617799520719.png

     

    Fjalar_1-1617799618902.png

     

    I am not posting anything sensitive here. Just info on a gas station and current prices 🙂 

     

     





  • CesarRamirez Profile Picture
    71 on at

    Hi @ALPetersen 
    To solve this I used a "Replace text" action before "Convert JSON to custom object" action, where replace all null to empty text, see below the actions and configuration used:

    CesarRamirez_2-1617834866445.png

    CesarRamirez_1-1617834734675.png

    I hope the solution works for you.

    Best regards.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks @CesarRamirez . This is indeed a solution to this task. Hopefully the Convert JSON to custom object action will be updated to handle null values better in future updates 🙂 

  • Kresimir_RPA Profile Picture
    286 on at

    Thnx @CesarRamirez, this is helpful workaround. I think this is still an issue even with the newest PAD update.

     

    Regards,

    Krešimir

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
11manish Profile Picture

11manish 231 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 217 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 170

Last 30 days Overall leaderboard