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

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:
I have the same question (0)
  • 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

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard