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 / Is this Flow correct/e...
Power Automate
Answered

Is this Flow correct/efficient? ...New to Flows

(0) ShareShare
ReportReport
Posted on by 106

I pieced this Flow (pic below) together from various posts and videos, but I know that sometimes that is not the correct way to do it and I am trying to learn how to do things correctly. Specifically I am not sure about the double loop since I am only returning one record (JSON output also below). Any assistance to clean up and/or complete the flow would be appreciated.

 

PowerApps>>>HTTP>>>Results to PowerAppsPowerApps>>>HTTP>>>Results to PowerApps

{
 "info": {
 "statuscode": 0,
 "copyright": {
 "text": "© 2021 MapQuest, Inc.",
 "imageUrl": "http://api.mqcdn.com/res/mqlogo.gif",
 "imageAltText": "© 2021 MapQuest, Inc."
 },
 "messages": []
 },
 "options": {
 "maxResults": 1,
 "thumbMaps": false,
 "ignoreLatLngInput": false
 },
 "results": [
 {
 "providedLocation": {
 "location": "Denver"
 },
 "locations": [
 {
 "street": "",
 "adminArea6": "",
 "adminArea6Type": "Neighborhood",
 "adminArea5": "Denver",
 "adminArea5Type": "City",
 "adminArea4": "Denver County",
 "adminArea4Type": "County",
 "adminArea3": "CO",
 "adminArea3Type": "State",
 "adminArea1": "US",
 "adminArea1Type": "Country",
 "postalCode": "",
 "geocodeQualityCode": "A5XAX",
 "geocodeQuality": "CITY",
 "dragPoint": false,
 "sideOfStreet": "N",
 "linkId": "282041090",
 "unknownInput": "",
 "type": "s",
 "latLng": {
 "lat": 39.738453,
 "lng": -104.984853
 },
 "displayLatLng": {
 "lat": 39.738453,
 "lng": -104.984853
 }
 }
 ]
 }
 ]
}

 

Categories:
  • Verified answer
    Kevin00 Profile Picture
    106 on at

    Found a better way to do it by using a Compose to narrow the JSON down to "locations" via 

    first(last(body('HTTPRequest')?['results'])?['locations'])

    Then a Parse JSON to put my 3 needed data points into variables.

    Kevin00_0-1616015878969.png

     

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 315 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 267

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard