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 : GNVtTTwGd/iMzl2+871zFz
Power Automate - Building Flows
Unanswered

When HTTP Request is Received - Triggers Multiple Times

Like (3) ShareShare
ReportReport
Posted on 16 Aug 2021 23:39:24 by 45

Hello- I have a flow that utilizes the trigger 'When a HTTP Request is Received'.  I have placed the URL in an Excel file as a hyperlink.  The Excel file is saved in a Teams channel files (and therefore Sharepoint). I also have a shortcut to the directory mapped to my desktop OneDrive. The flow works just fine, however, when the link is clicked from the file in Sharepoint, the flow triggers once (correct), but if clicked from Teams it runs twice, and if clicked from Excel desktop, it runs three times.  Is there a way to configure it to only run one time regardless of the source from which it is triggered?

  • Jan_Ur Profile Picture
    31 on 22 Sep 2023 at 11:59:18
    Re: When HTTP Request is Received - Triggers Multiple Times

    I used this trigger condition

     

    @contains(triggerOutputs()?['headers'], 'sec-ch-ua')

  • Michel21 Profile Picture
    3 on 03 Aug 2023 at 11:17:02
    Re: When HTTP Request is Received - Triggers Multiple Times

    It worked for me when i added the trigger conditions 

     

    @not(equals(triggerOutputs()?['headers']?['Connection'], 'Keep-Alive'))
    @not(equals(triggerOutputs()?['headers']?['Connection'], 'keep-alive'))

    for some reason one request had it writen with upper case K and A and the other with lower case a and k

  • Jaco_Campher Profile Picture
    97 on 28 Jun 2023 at 08:43:37
    Re: When HTTP Request is Received - Triggers Multiple Times

    Hi

     

    Was having a similar problem, just not from excel. Was calling from another workflow and also getting duplicate runs, but think I found the problem.

    This is from the first (Correct) run:

    Jaco_Campher_0-1687941465879.png

     

    This is for the second (Duplicate) run:

    Jaco_Campher_1-1687941507217.png

     

    At least in our case it looks to be the keep alive that is the problem.

     

    Adding this trigger condition solved it:

    @not(equals(triggerOutputs()?['headers']?['Connection'], 'Keep-Alive'))

     

    UPDATE:

    Just found out that when you call from a flow that is not in a solution, the keep alive is also there. So this is still not a solution.

  • Bruno_Andrade Profile Picture
    on 13 Oct 2022 at 22:43:34
    Re: When HTTP Request is Received - Triggers Multiple Times

    Hi!

    I'm still having this issue with the HTTP trigger.
    Was anyone able to bypass this issue without using macros?

     

    The empty body solution isn't working as the output just have headers 😕

    Thanks!

  • JM8221 Profile Picture
    4 on 22 Mar 2022 at 06:56:57
    Re: When HTTP Request is Received - Triggers Multiple Times

    Hi all,

     

    I hope that my suggestion would be helpful for you.

     

    ------------------------------------------------

    I didn't use a button linked to the trigger url because of the same issue with you.

    I used a macro button and the VBA code as follows.

     

     

    Sub openurl()
    Shell "rundll32.exe url.dll,FileProtocolHandler " & "input your Trigger URL", vbNormalFocus
    End Sub

     

     

    and then you will not see the trigger multiple times issue anymore.

     

    Good luck.

  • Aysan Profile Picture
    271 on 03 Nov 2021 at 17:36:31
    Re: When HTTP Request is Received - Triggers Multiple Times

    Hi @jennratten 

    Would you please help me figure out how you could get information about the excel file? I am working on a scenario close to yours, I am triggering the flow from the excel file using a button, just trying the get the file path/name in the flow 

    Aysan_0-1635960968744.png

     

  • aerojean Profile Picture
    66 on 28 Oct 2021 at 01:02:32
    Re: When HTTP Request is Received - Triggers Multiple Times

    In my configuration I'm using the link elsewhere, the original poster was using Excel. In your configuration it then seems like the flow is working correctly and it's the browser and/or the way of opening the link that is sending 2 requests quickly one after the other instead of the trigger responding twice for a single request, which was the problem I was having.

     

    At least we were able to narrow down the problem a bit. I'm not sure how to resolve it other than trying different browsers or ways to open the link that don't result in sending the request twice.

  • kaizechowdhury Profile Picture
    4 on 27 Oct 2021 at 22:27:36
    Re: When HTTP Request is Received - Triggers Multiple Times

    Thanks for the quick replies. Yes on point number 2 when I paste the link directly in browser it runs perfectly and runs once. By default it opens via chrome don't think I can change the default browser. 

     

    How is yours configured? Isn't it similar to mine where you are getting the link from power automate and using it in Excel or teams? 

  • aerojean Profile Picture
    66 on 27 Oct 2021 at 21:55:02
    Re: When HTTP Request is Received - Triggers Multiple Times

    If you're activating the flow with just a URL link and no additional parameters, which is what I think your case is, then yes the trigger condition I mentioned will apply to all of your requests and none of them will end up running because of it. I'm guessing Excel tries to open the link through the default browser. Things you could check:

     

    1. Set up a different default browser. Does this behavior happen with different browsers set as default? Maybe it's a browser specific behavior that's sending two requests instead of one.
    2. Does the double trigger happen if you copy the link and manually paste it on the address bar of a browser window instead of letting Excel open the browser and link for you?

    The truth is even if everything in your computer is working as it should this trigger doesn't behave 100% as advertised and it's buggy. In my case I was strictly doing a single request and it still triggered twice.

  • Kaizer Profile Picture
    12 on 27 Oct 2021 at 21:25:07
    Re: When HTTP Request is Received - Triggers Multiple Times

    in addition to my above message as you can see from the image it runs it twice from excel desktop. one second after.

    Kaizer_0-1635369869762.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

Responsible AI policies

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2