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

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,865 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

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard