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 / items('Apply_to_each')...
Power Automate
Answered

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

(0) ShareShare
ReportReport
Posted on by 565

 

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!

Categories:
I have the same question (0)
  • Verified answer
    abm abm Profile Picture
    32,985 Most Valuable Professional on at

    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

  • EmilioRoqueta69 Profile Picture
    565 on at

    It works, 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

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 1,027

#2
Valantis Profile Picture

Valantis 815

#3
Haque Profile Picture

Haque 630

Last 30 days Overall leaderboard