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 / Parsing the first and ...
Power Automate
Unanswered

Parsing the first and only record in a GET / ParseJSON back without loop

(1) ShareShare
ReportReport
Posted on by 2
Hi Guys,
 
Been a couple of days on this one and its starting to drive me bananas.  For background, my skill levels here are pretty low!!
 
I have a JSON GET request that only returns 1 items from an API and passes the data into a Parse JSON. The schema is later in this message. 
 
I am trying to reference the items (e.g. firstName, lastName) etc directly in the Respond to Powerapp Operation... but for some reason I cannot get this to work.  The only way I have had success is to Initialise a Variable, then go into a Apply Each loop to then set the variable before exiting the loop and Responding to the Powerapp.
I have tried approaches such as below, but none have as yet worked:

body('Parse_JSON')[0]['firstName']
first(body('Parse_JSON')['firstName'])
etc
 
Any help of assistance is very much appreciated...!
 
 
The schema for the JSON is below:
{
    "type": "object",
    "properties": {
        "meta": {
            "type": "object",
            "properties": {
                "count": {
                    "type": "integer"
                },
                "total": {
                    "type": "integer"
                },
                "limit": {
                    "type": "integer"
                },
                "offset": {
                    "type": "integer"
                }
            }
        },
        "members": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "firstName": {
                        "type": "string"
                    },
                    "lastName": {
                        "type": "string"
                    },
                    "number": {
                        "type": "string"
                    },
                    "accountCredit": {
                        "type": "number"
                    },
                    "amountOwing": {
                        "type": "integer"
                    },
                    "age": {
                        "type": [
                            "integer",
                            "string"
                        ]
                    },
                    "id": {
                        "type": "string"
                    }
                },
                "required": [
                    "firstName",
                    "lastName",
                    "number",
                    "accountCredit",
                    "amountOwing",
                    "age",
                    "id"
                ]
            }
        }
    }
}
Categories:
I have the same question (0)
  • TomMoody Profile Picture
    115 on at
    Please can you illustrate this part with screenshots so we can see details of your flow?
     
    'I am trying to reference the items (e.g. firstName, lastName) etc directly in the Respond to Powerapp Operation... but for some reason I cannot get this to work.  The only way I have had success is to Initialise a Variable, then go into a Apply Each loop'

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

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard