Skip to main content

Notifications

Power Automate - Using Connectors
Answered

List response values coming from an HTTP GET Request

(0) ShareShare
ReportReport
Posted on by 42

My HTTP Request contains the following schema:

 

[
 {
 "subscriptionId": "65a658b6fe11111c42c65caa",
 "backendServices": [
 {
 "source": "iFreedom",
 "baseUrl": "https://itestclientdemo-bff.dev.deltafs.net",
 "authority": "https://login.microsoftonline.com/itestdemo.onmicrosoft.com",
 "clientId": "ee5790f9-1111-4fb7-be5d-e8187749ed65",
 "clientSecret": "Wve8Q********************",
 "scope": "https://itestdemo.onmicrosoft.com/itestapi/.default",
 "rateLimitCalls": 3,
 "rateLimitRenewalPeriod": 15,
 "isDisabled": false
 },
 {
 "source": "DataQuery",
 "baseUrl": "https://testdockerswarmmgr.dev.test.net/test001",
 "authority": "https://login.microsoftonline.com/244f2457-25aa-1111-8ffd-c1c5aa8851fc",
 "clientId": "31a82379-9991-4c40-a5fc-ec2cdeb8af88",
 "clientSecret": "kKt8Q********************",
 "scope": "https://deltafspproapps.onmicrosoft.com/testmax/.default",
 "rateLimitCalls": 3,
 "rateLimitRenewalPeriod": 15,
 "isDisabled": false
 }
 ]
 }
]

 

 

1. I want to return each subscription and its backend services (the source values)

Something like this:

 

SubscriptionsSources
65a658b6fe11111c42c65caaiFreedom
 DataQuery

 

 

2. The problem is the looping, please see below:

craicovici317_0-1709394505656.png

 

3. I need to output this in a simple gallery in PowerApps - but the output returned is not in the right format / readable
As you can see, this only returns the first item from the loop.

craicovici317_1-1709394749522.png

 




  • craicovici317 Profile Picture
    craicovici317 42 on at
    Re: List response values coming from an HTTP GET Request

    Awesome, it worked perfectly fine, exactly what I needed. Thank you!

  • Verified answer
    Re: List response values coming from an HTTP GET Request

    Hi , @craicovici317 

    You can refer to my test flow. The Compose action is used to create the test data:

    vyueyunmsft_0-1709521842831.png

    And this is my test result :

    vyueyunmsft_1-1709521872508.png

    This is my flow:

    vyueyunmsft_2-1709521953316.png

    range(0,length(items('Apply_to_each')?['backendServices']))
    items('Apply_to_each')?['subscriptionId']
    items('Apply_to_each')?['backendServices']?[item()]?['source']
     

    If this reply can help you , you can click mark this reply as solution (Accept solution) which can help more people, thanks in advance! 

     

    Best Regards,

    Yueyun Zhang

     

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,567

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,907

Leaderboard

Featured topics