AuthorizationFailed when calling a Logic App Http trigger from Power Automate

Sylvain 216 Reputation points
2022-03-16T11:15:59.13+00:00

Hi,

I have a logic app triggered by HTTP, it works fine from Postman but when i try to call it from a Power Automate flow I get this http 401 error :

{
"error": {
"code": "AuthorizationFailed",
"message": "Vous n’êtes pas autorisé à effectuer l’action « run » sur l’étendue « /triggers/manual/paths/ ». Vérifiez que votre demande utilise la méthode HTTP appropriée. Pour plus de détails, voir http://aka.ms/logic-trigger."
}
}

Azure Logic Apps
Azure Logic Apps

An Azure service that automates the access and use of data across clouds without writing code.

0 comments No comments

Answer accepted by question author
MayankBargali-MSFT 71,021 Reputation points Moderator
2022-03-16T14:21:30.06+00:00

@Sylvain Thanks for reaching out. The issue is more towards power automation how the HTTP action creates the request. I have done a quick test at my end creating the power app and found that the HTTP trigger accepts the Queries parameter which you need to pass separately. If you are passing the queries parameter in the URL then looks like power automation doesn't send the Queries parameter while creating the request. As the authentication parameter (sig) was not passed to the logic app correctly therefore you are getting the AuthorizationFailed error.

To resolve the issue you need to break the query parameter of your logic app URL and pass the query parameter in the Queries parameter in your power apps as below to resolve the issue.
You need to update the sp, sig, and URI parameters as per your logic app URL that is generated.

183811-image.png

For any Power automation issue, you can always reach out to the team in the dedicated forums here as it is not currently supported here on QnA.

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.