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 get missing pro...
Power Automate
Answered

How to get missing properties in array for complex JSON

(0) ShareShare
ReportReport
Posted on by

I have a large array that looks something like this (heavily summarized):

 

[

{

"@ID":

"StandardFeature":

"EOBACNetFeature":

},

{

"@ID":

"StandardFeature":

"EOBACNetFeature":

"ParameterFeature":

}

]

 

I've tried to make a flow that pulls out all the values. item().['@ID'], item().StandardFeature, and item().EOBACNetFeature gets the values correctly, but item().ParameterFeature returns the error:

 

...cannot be evaluated because property 'ParameterFeature' doesn't exist, available properties are '@ID, StandardFeature, EOBACnetFeature'.

 

Because 'ParameterFeature' isn't in the first item in the array. How do I get 'ParameterFeature'? I've tried 

 

if(equals(item().ParameterFeature,null),'',item().ParameterFeature)

 

 for 'Value 2' in the table and that gives the same error.

 

 (The whole JSON is super complicated with each array having different objects so the Parse JSON function doesn't work for me. I have to use this workaround)

RobinW_0-1688752659582.png

 

Categories:
I have the same question (0)
  • Verified answer
    rzaneti Profile Picture
    4,249 Super User 2025 Season 2 on at

    Hi @RobinW ,

     

    If I understood correctly, you may solve the problem by just adding a question mark after item(). It will add the property only if it exists in the iterated object:

    rzaneti_0-1688762006292.png

     

    Output:

    rzaneti_1-1688762031411.png

     

    Let me know if it works for you or if you need any additional help!

     

    -------------------------------------------------------------------------
    If this is the answer for your question, please mark the post as Solved.
    If this answer helps you in any way, please give it a like.

  • RobinW Profile Picture
    on at

    That was easier than I thought. Thank you!

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard