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 / When an HTTP is receiv...
Power Automate
Suggested Answer

When an HTTP is received flows

(0) ShareShare
ReportReport
Posted on by 2
Hello,
 
I have a few flows that are using "When an http is received" trigger. Until now I was using Anyone in who can trigger the flow but since last week this option was giving me the below error: 
{"error":{"code":"AuthorizationFailed","message":"The authentication credentials are not valid."}}
After some research I changed the who can trigger the flow to any user in my tenant. I have also registered an app in order to be able to use that option. 
My issue is that the flow is triggered from SharePoint subsites that are created dynamically when a new project is created which means that I don't have any information available to preset in my flow. To be able to get information that are stored as metadata in my library I am using a button to trigger the flow that uses when an http request is received and get the information in the URL. 
Now in order to trigger the flow I need to have another flow that has the HTTP action that calls the flow with the When an http request is received. However my problem is that I can't get the parameters I need for the flow dynamically. I can trigger a flow with manual trigger from the button in SharePoint library but if I specify parameters on the manual trigger I can't pass them dynamically from the button.
Is there a way to achieve this? I need the flow to start from SharePoint library using a button because I use it as a submit action.
 
Thank you in advance for your help!
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,978 Moderator on at
     
    Yeah this will not work anymore since it requires auth now.
     
    So you essentially have to do a double hop authentication to make it work with a Webhook or a power automate trigger (I do not know exactly what you are doing) but can you trigger in SharePoint to save data to a list so it can trigger the flow (but without the HTTP call?) or at least if you were in the triggered flow you COULD authenticate to your primary flow with the HTTP Trigger.
     
    There are other ways as well but validating if you can even do these would help as you are limited no matter what as that Trigger requires auth, so if you can use another trigger by saving data in SharePoint first it would help.

    If these suggestions help resolve your issue, Please consider Marking the answer as such and also maybe a like.

    Thank you!
    Sincerely, Michael Gernaey
  • KM-17111306-0 Profile Picture
    2 on at
    Hello Michael,
     
    Thank you very much for your reply!
    I am not sure if I understood what you are suggesting. Let me explain what I am trying to achieve because I don't think I explained it properly.
    For every project that is created in SharePoint I automatically create a subsite using a template. This subsite is to be used to store all the information and documents during the lifecycle of the project. In this subsite I also give access to the client and to the vendors that will work on the project. Both the vendors and the client can upload documents related to the project and then submit them for approval. The way I do the submission is from a button that triggers a flow. Until now my flow was using the "When an http requests is received" trigger and was getting parameters from my library as shown below:
    {
      "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
      "elmType": "a",
      "txtContent": "Υποβολή Παραδοτέου",
      "attributes": {
        "target": "_blank",
        "href": "='https://default......../triggers/manual/paths/invoke?api-version=1' + [$ProjectSpaceUrl] + '&LibraryName=' + [$LibraryName] + '&FolderName=' + [$FileLeafRef] + '&ClientCompanyEmail=' + [$ClientCompanyEmail] + '&Finaldeliverable=' + [$Finaldeliverable]"
      },
      "style": {
        "font-size": "14px",
        "padding-top": "14px",
        "padding-bottom": "0px",
        "text-align": "center",
        "background-color": "#C68B66",
        "color": "white",
        "display": "=if([$ContentType] == 'Folder' && [$Deliverablefolder] == 'Yes', 'block', 'none')"
      }
    }
     
    Now that Microsoft changed the action and I can't use Anyone as an option to who can trigger my flow, I need to find another way to get those parameters. The issue is that I can't use For a selected file because I don't know the URL of my subsite beforehand. I am trying to see if there is any other way to get those parameters dynamically as I already have them stored as metadata in the library from where I trigger the flow. I tried using the HTTP action in another flow but I still can't get the parameters.
    I hope this give you a better understanding of the situation.
     
    Thank you!
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 976

#2
Valantis Profile Picture

Valantis 863

#3
Haque Profile Picture

Haque 547

Last 30 days Overall leaderboard