Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

items('Apply_to_each')['platform']' gets error

(0) ShareShare
ReportReport
Posted on by 511

 

Hi,

 

I am reading a JSON file that the value "platform" in some records is missing.

 

Flowjson2.png

 

So, because of that, when in a loop, I want to get the value:

 

items('Apply_to_each')['_source']['platform']

 

I get this error:

 

EmilioRoqueta69_0-1715180221035.png

 

How can avoid or check if the value "platform" exists in this record?

 

Thanks for any help!

  • EmilioRoqueta69 Profile Picture
    511 on at
    Re: items('Apply_to_each')['platform']' gets error

    It works, thank you !!

  • Verified answer
    abm abm Profile Picture
    32,488 Most Valuable Professional on at
    Re: items('Apply_to_each')['platform']' gets error

    Hi @EmilioRoqueta69 

     

    Because its optional try the following with a question mark between.

     

    items('Apply_to_each')['_source']?['platform']

     

    If no question mark means its mandatory and that means that data needs to be present all the time.

     

    Thanks

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492