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 / JSON Data Collected bu...
Power Automate
Answered

JSON Data Collected but Not Used

(0) ShareShare
ReportReport
Posted on by 17
After an agent passes a string to this flow, the flow parses the string as a JSON object. After reviewing the run, the string is successfully parsed as a JSON and is verified. However, when the json attribute is called it fails. I am receiving the attribute with:
 
body('Parse_JSON')?['itemName']
 
If anyone has any idea, I would appreciate it.
Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,891 Most Valuable Professional on at
     
    Can your payload return more than one item? Otherwise it might still return it as an item in a collection. In that case you need to tell it which item (even though it is only returning 1 item).
     
    In that case your expression might need to be:
    first(body('Parse_JSON'))?['itemName']
    Additionally, can you share a screenshot with the JSON payload you are trying to parse. This will also help troubleshooting.



     
    Happy to help out 😁

    I share more #PowerAutomate and #SharePointOnline content on my Blog, LinkedIn, Bluesky profile or Youtube Channel
  • SalamiPi3 Profile Picture
    17 on at
     
    The payload consists of 12 items. An agent passes a string into the flow,

    Which is then parsed as a JSON


    Here is one of the test runs parse:
     
  • Verified answer
    Expiscornovus Profile Picture
    33,891 Most Valuable Professional on at
     
    I see the property is called "Item Name" and not "itemName" in the raw outputs of the parse json action. So it might just have been a small typo in your first attempt? 
     
    And it is not an array, but just an object. So try the below instead, without the first function.
     
    body('Parse_JSON')?['Item Name']
     
    Happy to help out 😁

    I share more #PowerAutomate and #SharePointOnline content on my Blog, LinkedIn, Bluesky profile or Youtube Channel
  • SalamiPi3 Profile Picture
    17 on at
     
    That was correct! Although it is odd - I put in exactly what power automate had provided as the output from the parse. It automatically set it as that, maybe due to the naming convention? Despite that, the JSON had in fact taken all variables that had multiple words and separated them with a space. Adding a space to all variables when being processed worked!
     
    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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard