web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : lPZJqAyci4KFxuY4JlTer8
Power Automate - General Discussion
Answered

Can you have more than one http Response action?

Like (0) ShareShare
ReportReport
Posted on 12 Mar 2023 22:56:00 by 294

I have a flow that has a 'Switch' to determine different paths to take, based on the input passed in. Each path makes different web http calls and gets back JSON data (each branch returns different data). Is it possible to have two branches that have an Http Response with the response code of 200? It appears it does not. If not, how do I return this JSON data in each branch?

 

Additionally, if I put a result code of 200 in one and 201 in the other branches HTTP Return Code, it runs, but seems the data returned to PowerApps (which is where the call originates) always uses the layout of the first branches columns names (which has the Return Code of 200). For example, if branch 1 has the columns Code and Description in the data being returned in the Http Response (Code 200), if branch 2 is followed on another run (but has a Code 201 in the action), it still returns columns Code and Description, even though it has different columns (although doesn't show the branch 1 data, but then also doesn't show the branch 2 data, even though the output of the response in Power Automate shows the correct branch 2 columns and data).

 

Not sure if any of this makes sense. Hope someone has an idea of what I may be missing.

 

dBrand_0-1678661711579.png

 

I have the same question (0)
  • akio_simokomaki Profile Picture
    10 on 03 Jun 2023 at 02:04:45
    Re: Can you have more than one http Response action?
    • I'm having the same problem, but can not use that solution, cause i need performance as a priority, so i'm building up a huge table template so i can use in all of the reponses, and bringing with some blank column values 
  • David Brandman Profile Picture
    294 on 13 Mar 2023 at 15:49:13
    Re: Can you have more than one http Response action?

    Thanks for the example. Was hoping there was an easier way and also not use ForAll (which is slow).

  • Verified answer
    v-xiaochen-msft Profile Picture
    on 13 Mar 2023 at 06:58:36
    Re: Can you have more than one http Response action?

    Hi @dBrand ,

     

    I made a sample for you.

    vxiaochenmsft_0-1678690586504.png

    vxiaochenmsft_1-1678690612760.png

    vxiaochenmsft_2-1678690630247.png

    vxiaochenmsft_3-1678690646638.png

    vxiaochenmsft_4-1678690667230.png

    vxiaochenmsft_5-1678690695792.png

    Set(Coltemp,'PowerAppV2->Switch,Response,Response2'.Run("A"));
    If(Coltemp.state=200,ClearCollect(Col,ForAll(Table(ParseJSON(Coltemp.output)),{Col1:Text(Value.Col1),Col2:Text(Value.Col2)})),Coltemp.state=201,ClearCollect(Col,ForAll(Table(ParseJSON(Coltemp.output)),{Col3:Text(Value.Col3),Col4:Text(Value.Col4)})))

     

    Best Regards,

    Wearsky

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 783 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 515 Moderator

#3
trice602 Profile Picture

trice602 299 Super User 2025 Season 2

Last 30 days Overall leaderboard
Loading complete